1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Merge pull request #6 from esp8266/esp8266

Esp8266
This commit is contained in:
Me No Dev 2015-06-16 00:32:33 +03:00
commit a4fa7335ad

View File

@ -123,7 +123,11 @@ void interrupt_handler(void *arg) {
while(!(changedbits & (1 << i))) i++;
changedbits &= ~(1 << i);
interrupt_handler_t *handler = &interrupt_handlers[i];
if(((handler->mode & 1) == digitalRead(i)) && handler->fn) handler->fn();
if (handler->fn &&
(handler->mode == CHANGE ||
(handler->mode & 1) == digitalRead(i))) {
handler->fn();
}
}
ETS_GPIO_INTR_ENABLE();
}