We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3183c7c commit cf89c32Copy full SHA for cf89c32
hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_wiring_digital.c
@@ -123,7 +123,11 @@ void interrupt_handler(void *arg) {
123
while(!(changedbits & (1 << i))) i++;
124
changedbits &= ~(1 << i);
125
interrupt_handler_t *handler = &interrupt_handlers[i];
126
- if(((handler->mode & 1) == digitalRead(i)) && handler->fn) handler->fn();
+ if (handler->fn &&
127
+ (handler->mode == CHANGE ||
128
+ (handler->mode & 1) == digitalRead(i))) {
129
+ handler->fn();
130
+ }
131
}
132
ETS_GPIO_INTR_ENABLE();
133
0 commit comments