Browse Source

Tweak AVR critical section defines

Scott Lahteine 7 years ago
parent
commit
c1269c2ec1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/HAL/HAL_AVR/HAL.h

+ 2
- 2
Marlin/src/HAL/HAL_AVR/HAL.h View File

@@ -52,8 +52,8 @@
52 52
 //#define analogInputToDigitalPin(IO) IO
53 53
 
54 54
 #ifndef CRITICAL_SECTION_START
55
-  #define CRITICAL_SECTION_START  unsigned char _sreg = SREG; cli();
56
-  #define CRITICAL_SECTION_END    SREG = _sreg;
55
+  #define CRITICAL_SECTION_START  unsigned char _sreg = SREG; cli()
56
+  #define CRITICAL_SECTION_END    SREG = _sreg
57 57
 #endif
58 58
 #define ISRS_ENABLED() TEST(SREG, SREG_I)
59 59
 #define ENABLE_ISRS()  sei()

Loading…
Cancel
Save