Skip to content

Commit 214d8bc

Browse files
committed
Improve clearing GPIO interrupt state (thanks @me-no-dev)
1 parent 6372a0d commit 214d8bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_wiring_digital.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static uint32_t interrupt_reg = 0;
111111

112112
void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
113113
uint32_t status = GPIE;
114-
uint32_t levels = GPI;
115114
GPIEC = status;//clear them interrupts
115+
uint32_t levels = GPI;
116116
if(status == 0 || interrupt_reg == 0) return;
117117
ETS_GPIO_INTR_DISABLE();
118118
int i = 0;

0 commit comments

Comments
 (0)