We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de87f53 commit 40ed3c5Copy full SHA for 40ed3c5
Marlin/src/HAL/STM32F1/HAL.h
@@ -177,7 +177,7 @@ typedef int8_t pin_t;
177
// ------------------------
178
179
#define CRITICAL_SECTION_START() const bool irqon = !__get_primask(); (void)__iCliRetVal()
180
-#define CRITICAL_SECTION_END() if (!primask) (void)__iSeiRetVal()
+#define CRITICAL_SECTION_END() if (!irqon) (void)__iSeiRetVal()
181
#define cli() noInterrupts()
182
#define sei() interrupts()
183
0 commit comments