fix(openthread): restore LED state indicator for example code

This commit is contained in:
Tan Yan Quan
2026-01-14 14:13:14 +08:00
parent 719ea8d747
commit 4e94df77b2
3 changed files with 9 additions and 0 deletions
@@ -123,6 +123,9 @@ void app_main(void)
ESP_ERROR_CHECK(esp_coex_wifi_i154_enable()); ESP_ERROR_CHECK(esp_coex_wifi_i154_enable());
#endif #endif
#endif #endif
#if CONFIG_OPENTHREAD_STATE_INDICATOR_ENABLE
ESP_ERROR_CHECK(esp_openthread_state_indicator_init(esp_openthread_get_instance()));
#endif
#if CONFIG_OPENTHREAD_NETWORK_AUTO_START #if CONFIG_OPENTHREAD_NETWORK_AUTO_START
ot_network_auto_start(); ot_network_auto_start();
#endif #endif
@@ -74,6 +74,9 @@ void app_main(void)
#if CONFIG_OPENTHREAD_CLI_ESP_EXTENSION #if CONFIG_OPENTHREAD_CLI_ESP_EXTENSION
esp_cli_custom_command_init(); esp_cli_custom_command_init();
#endif #endif
#if CONFIG_OPENTHREAD_STATE_INDICATOR_ENABLE
ESP_ERROR_CHECK(esp_openthread_state_indicator_init(esp_openthread_get_instance()));
#endif
#if CONFIG_OPENTHREAD_NETWORK_AUTO_START #if CONFIG_OPENTHREAD_NETWORK_AUTO_START
ot_network_auto_start(); ot_network_auto_start();
#endif #endif
@@ -83,6 +83,9 @@ void app_main(void)
#if CONFIG_OPENTHREAD_CLI_ESP_EXTENSION #if CONFIG_OPENTHREAD_CLI_ESP_EXTENSION
esp_cli_custom_command_init(); esp_cli_custom_command_init();
#endif #endif
#if CONFIG_OPENTHREAD_STATE_INDICATOR_ENABLE
ESP_ERROR_CHECK(esp_openthread_state_indicator_init(esp_openthread_get_instance()));
#endif
#if CONFIG_OPENTHREAD_NETWORK_AUTO_START #if CONFIG_OPENTHREAD_NETWORK_AUTO_START
ot_network_auto_start(); ot_network_auto_start();
#endif #endif