mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-01-13 16:57:17 +08:00
修复ESP-Hi报错 (#1643)
* 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 <terrence@tenclass.com>
This commit is contained in:
parent
7240ea99f1
commit
b48506171b
@ -224,6 +224,7 @@ private:
|
|||||||
SetLedColor(0x00, 0x00, 0x00);
|
SetLedColor(0x00, 0x00, 0x00);
|
||||||
|
|
||||||
#ifdef CONFIG_ESP_HI_WEB_CONTROL_ENABLED
|
#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,
|
ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_CONNECTED,
|
||||||
&wifi_event_handler, this));
|
&wifi_event_handler, this));
|
||||||
#endif //CONFIG_ESP_HI_WEB_CONTROL_ENABLED
|
#endif //CONFIG_ESP_HI_WEB_CONTROL_ENABLED
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user