Просмотр исходного кода

Don't autofail if NTP server can't be reached during initalization (#1498)

This fixes an issue with a restricted network without internet access,
where the hardcoded ntp server can't be reached and thus the esp resets,
as it's not able to finish initalization.
Ralf Rachinger 3 лет назад
Родитель
Сommit
53a764abc8
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      code/main/main.cpp

+ 0 - 1
code/main/main.cpp

@@ -214,7 +214,6 @@ extern "C" void app_main(void)
 
 
     if (!setup_time()) {
     if (!setup_time()) {
         LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "NTP Initialization failed!");
         LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "NTP Initialization failed!");
-        initSucessful = false;
     }
     }
 
 
     setBootTime();
     setBootTime();