mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-03 07:02:28 +03:00
Improve clearing GPIO interrupt state (thanks @me-no-dev)
This commit is contained in:
parent
6372a0dd05
commit
214d8bc8b8
@ -111,8 +111,8 @@ static uint32_t interrupt_reg = 0;
|
||||
|
||||
void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
|
||||
uint32_t status = GPIE;
|
||||
uint32_t levels = GPI;
|
||||
GPIEC = status;//clear them interrupts
|
||||
uint32_t levels = GPI;
|
||||
if(status == 0 || interrupt_reg == 0) return;
|
||||
ETS_GPIO_INTR_DISABLE();
|
||||
int i = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user