Skip to content

Commit d89091e

Browse files
committed
Use RAII idiom
1 parent f6ad6e2 commit d89091e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp8266/core_esp8266_wiring_digital.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "ets_sys.h"
2727
#include "user_interface.h"
2828
#include "core_esp8266_waveform.h"
29+
#include "interrupts.h"
2930

3031
extern "C" {
3132

@@ -135,7 +136,7 @@ void ICACHE_RAM_ATTR interrupt_handler(void *arg, void *frame)
135136
(handler->mode & 1) == !!(levels & (1 << i)))) {
136137
// to make ISR compatible to Arduino AVR model where interrupts are disabled
137138
// we disable them before we call the client ISR
138-
esp8266::InterruptLock irqLock; // stop other interrupts
139+
esp8266::InterruptLock irqLock; // stop other interrupts
139140
handler->fn();
140141
}
141142
}

0 commit comments

Comments
 (0)