We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df7deb5 + 363728e commit df2eb55Copy full SHA for df2eb55
esp_hosted_ng/esp/esp_driver/network_adapter/main/app_main.c
@@ -613,6 +613,7 @@ int event_handler(uint8_t val)
613
} else {
614
ESP_EARLY_LOGI(TAG, "Failed to Stop Data Path");
615
}
616
+ esp_restart();
617
break;
618
619
case ESP_POWER_SAVE_ON:
@@ -724,13 +725,11 @@ void app_main()
724
725
726
create_debugging_tasks();
727
- while (!datapath) {
728
- usleep(100*1000);
729
- }
730
-
731
set_gpio_cd_pin();
732
- /*send capabilities to host*/
733
- send_bootup_event_to_host(capa);
+
+ /* send capabilities to host */
+ if (datapath || xSemaphoreTake(init_sem, portMAX_DELAY))
+ send_bootup_event_to_host(capa);
734
735
ESP_LOGI(TAG,"Initial set up done");
736
0 commit comments