From d55c070d1d25570734517b35b1f7536bb92c0cae Mon Sep 17 00:00:00 2001 From: Xiaoxia Date: Sat, 10 Jan 2026 16:28:52 +0800 Subject: [PATCH] Remove error check for event loop creation If event loop already created, this function returns ESP_ERR_INVALID_STATE --- main/boards/esp-hi/esp_hi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/boards/esp-hi/esp_hi.cc b/main/boards/esp-hi/esp_hi.cc index 6d211dd1..0d645694 100644 --- a/main/boards/esp-hi/esp_hi.cc +++ b/main/boards/esp-hi/esp_hi.cc @@ -224,7 +224,7 @@ private: SetLedColor(0x00, 0x00, 0x00); #ifdef CONFIG_ESP_HI_WEB_CONTROL_ENABLED - ESP_ERROR_CHECK(esp_event_loop_create_default()); + esp_event_loop_create_default(); ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_CONNECTED, &wifi_event_handler, this)); #endif //CONFIG_ESP_HI_WEB_CONTROL_ENABLED