mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-01-14 09:17:20 +08:00
Remove error check for event loop creation
If event loop already created, this function returns ESP_ERR_INVALID_STATE
This commit is contained in:
parent
66ef60b960
commit
d55c070d1d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user