Browse Source

🐛 Fix Due cli/sei (#24182)

Followup to #23357
FB4S_WIFI
Marcio T 3 years ago
committed by Scott Lahteine
parent
commit
78c7fedcea
  1. 4
      Marlin/src/HAL/DUE/HAL.h

4
Marlin/src/HAL/DUE/HAL.h

@ -115,8 +115,8 @@ typedef Servo hal_servo_t;
// //
// Interrupts // Interrupts
// //
#define sei() noInterrupts() #define sei() interrupts()
#define cli() interrupts() #define cli() noInterrupts()
#define CRITICAL_SECTION_START() const bool _irqon = hal.isr_state(); hal.isr_off() #define CRITICAL_SECTION_START() const bool _irqon = hal.isr_state(); hal.isr_off()
#define CRITICAL_SECTION_END() if (_irqon) hal.isr_on() #define CRITICAL_SECTION_END() if (_irqon) hal.isr_on()

Loading…
Cancel
Save