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.
This commit is contained in:
Ralf Rachinger
2022-12-06 06:00:43 +00:00
committed by GitHub
parent 4f07c88769
commit 53a764abc8

View File

@@ -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();