瀏覽代碼

🐛 Fix Due cli/sei (#24182)

Followup to #23357
Marcio T 2 年之前
父節點
當前提交
e092a02d77
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/HAL/DUE/HAL.h

+ 2
- 2
Marlin/src/HAL/DUE/HAL.h 查看文件

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

Loading…
取消
儲存