Skip to content

Commit 40ed3c5

Browse files
authored
🐛 Fix STM32F1 HAL build (MarlinFirmware#23897)
Followup to MarlinFirmware#23357
1 parent de87f53 commit 40ed3c5

File tree

1 file changed

+1
-1
lines changed
  • Marlin/src/HAL/STM32F1

1 file changed

+1
-1
lines changed

Marlin/src/HAL/STM32F1/HAL.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ typedef int8_t pin_t;
177177
// ------------------------
178178

179179
#define CRITICAL_SECTION_START() const bool irqon = !__get_primask(); (void)__iCliRetVal()
180-
#define CRITICAL_SECTION_END() if (!primask) (void)__iSeiRetVal()
180+
#define CRITICAL_SECTION_END() if (!irqon) (void)__iSeiRetVal()
181181
#define cli() noInterrupts()
182182
#define sei() interrupts()
183183

0 commit comments

Comments
 (0)