Remove error check for event loop creation

If event loop already created, this function returns ESP_ERR_INVALID_STATE
This commit is contained in:
Xiaoxia 2026-01-10 16:28:52 +08:00 committed by GitHub
parent 66ef60b960
commit d55c070d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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