From 722784610d5df3bf3a51f0264162f3a5d3742058 Mon Sep 17 00:00:00 2001 From: Francisco Herrera Date: Sun, 16 Oct 2022 18:44:41 -0300 Subject: [PATCH] Fixed wrong return value when when isr service already installed --- components/esp8266/driver/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp8266/driver/gpio.c b/components/esp8266/driver/gpio.c index a0124f669..c5b8737ab 100644 --- a/components/esp8266/driver/gpio.c +++ b/components/esp8266/driver/gpio.c @@ -421,7 +421,7 @@ esp_err_t gpio_isr_register(void (*fn)(void *), void *arg, int no_use, gpio_isr_ esp_err_t gpio_install_isr_service(int no_use) { - GPIO_CHECK(gpio_isr_func == NULL, "GPIO isr service already installed", ESP_FAIL); + GPIO_CHECK(gpio_isr_func == NULL, "GPIO isr service already installed", ESP_ERR_INVALID_STATE); esp_err_t ret; ENTER_CRITICAL();