From 44223f802663a95caf6ad420cf48f98a4819c998 Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Thu, 11 Jun 2026 21:50:30 +0200 Subject: [PATCH] fix isr service error --- firmware/main/CMakeLists.txt | 2 ++ firmware/main/inet_mon_main.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/firmware/main/CMakeLists.txt b/firmware/main/CMakeLists.txt index 21ad5cd..24e9f5d 100644 --- a/firmware/main/CMakeLists.txt +++ b/firmware/main/CMakeLists.txt @@ -7,5 +7,7 @@ idf_component_register( esp_eth driver nvs_flash + esp_driver_gpio INCLUDE_DIRS "" ) + diff --git a/firmware/main/inet_mon_main.cpp b/firmware/main/inet_mon_main.cpp index 2e3d776..f40415a 100644 --- a/firmware/main/inet_mon_main.cpp +++ b/firmware/main/inet_mon_main.cpp @@ -14,6 +14,7 @@ #include "nvs_flash.h" #include "driver/spi_master.h" +#include "driver/gpio.h" #include "esp_eth.h" #include "esp_eth_mac.h" @@ -119,6 +120,8 @@ extern "C" void app_main(void) esp_event_handler_register(ETH_EVENT, ESP_EVENT_ANY_ID, ð_event_handler, NULL); esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &got_ip_event_handler, NULL); + ESP_ERROR_CHECK(gpio_install_isr_service(0)); + // ---------------- SPI BUS ---------------- spi_bus_config_t buscfg = {};