diff --git a/interrupt_example/user/user_main.c b/interrupt_example/user/user_main.c index f591bee..3e2f181 100644 --- a/interrupt_example/user/user_main.c +++ b/interrupt_example/user/user_main.c @@ -130,7 +130,7 @@ void ICACHE_FLASH_ATTR user_init() // enable interrupt for his GPIO // GPIO_PIN_INTR_... defined in gpio.h - gpio_pin_intr_state_set(GPIO_ID_PIN(0), GPIO_PIN_INTR_ANYEGDE); + gpio_pin_intr_state_set(GPIO_ID_PIN(0), GPIO_PIN_INTR_ANYEDGE); ETS_GPIO_INTR_ENABLE();