🐛 Fix Due cli/sei (#24182)

Followup to #23357
This commit is contained in:
Marcio T 2022-05-16 20:45:47 -06:00 committed by Scott Lahteine
parent c4b8339b84
commit 78c7fedcea

View File

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