From b48506171b89f25eff99f46d18ac7808cd3564b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BF=E7=8E=84?= <33661049+dunxuan@users.noreply.github.com> Date: Sat, 10 Jan 2026 16:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DESP-Hi=E6=8A=A5=E9=94=99=20(#?= =?UTF-8?q?1643)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update esp_hi.cc * Remove error check for event loop creation If event loop already created, this function returns ESP_ERR_INVALID_STATE --------- Co-authored-by: Xiaoxia --- main/boards/esp-hi/esp_hi.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/main/boards/esp-hi/esp_hi.cc b/main/boards/esp-hi/esp_hi.cc index fdfcebf0..0d645694 100644 --- a/main/boards/esp-hi/esp_hi.cc +++ b/main/boards/esp-hi/esp_hi.cc @@ -224,6 +224,7 @@ private: SetLedColor(0x00, 0x00, 0x00); #ifdef CONFIG_ESP_HI_WEB_CONTROL_ENABLED + 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