소스 검색

Added taskYield after wifi start

Sebastien 5 년 전
부모
커밋
114d507e3f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      components/wifi-manager/wifi_manager.c

+ 1 - 0
components/wifi-manager/wifi_manager.c

@@ -230,6 +230,7 @@ void wifi_manager_init_wifi(){
     ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_NULL) );
     ESP_LOGD(TAG, "Initializing wifi. Starting wifi");
     ESP_ERROR_CHECK( esp_wifi_start() );
+    taskYIELD();  /* allows the freeRTOS scheduler to take over if needed. */
     ESP_LOGD(TAG, "Initializing wifi. done");
 }