Skip to content

Commit

Permalink
🐛 Fix Due cli/sei (MarlinFirmware#24182)
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot authored and LCh-77 committed May 28, 2022
1 parent 82227c8 commit 3c4875d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/HAL/DUE/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3c4875d

Please sign in to comment.