Skip to content

Commit

Permalink
🐛 Fix STM32F1 HAL build (MarlinFirmware#23897)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsju authored and LCh-77 committed Mar 16, 2022
1 parent fe2dcd1 commit 0229ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32F1/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ typedef int8_t pin_t;
// ------------------------

#define CRITICAL_SECTION_START() const bool irqon = !__get_primask(); (void)__iCliRetVal()
#define CRITICAL_SECTION_END() if (!primask) (void)__iSeiRetVal()
#define CRITICAL_SECTION_END() if (!irqon) (void)__iSeiRetVal()
#define cli() noInterrupts()
#define sei() interrupts()

Expand Down

0 comments on commit 0229ed0

Please sign in to comment.