diff --git a/cores/esp8266/core_esp8266_wiring_digital.c b/cores/esp8266/core_esp8266_wiring_digital.c index f3cac6cb4..735466c3a 100644 --- a/cores/esp8266/core_esp8266_wiring_digital.c +++ b/cores/esp8266/core_esp8266_wiring_digital.c @@ -198,7 +198,7 @@ extern void __attachInterrupt(uint8_t pin, voidFuncPtr handler, int mode) } else if (mode == CHANGE) { - gpio_pin_intr_state_set(pin, GPIO_PIN_INTR_ANYEGDE); + gpio_pin_intr_state_set(pin, GPIO_PIN_INTR_ANYEDGE); } else {