8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e47228 commit 6061d9bCopy full SHA for 6061d9b
hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_wiring_digital.c
@@ -121,7 +121,11 @@ void interrupt_handler(void *arg) {
121
while(!(changedbits & (1 << i))) i++;
122
changedbits &= ~(1 << i);
123
interrupt_handler_t *handler = &interrupt_handlers[i];
124
- if(((handler->mode & 1) == digitalRead(i)) && handler->fn) handler->fn();
+ if (handler->fn &&
125
+ (handler->mode == CHANGE ||
126
+ (handler->mode & 1) == digitalRead(i))) {
127
+ handler->fn();
128
+ }
129
}
130
ETS_GPIO_INTR_ENABLE();
131
0 commit comments