Используем ntp из settings.json

Теперь ntp из settings.json используется
This commit is contained in:
Mit4el
2023-04-07 14:26:03 +03:00
committed by GitHub
parent 471a9d94bf
commit c82197c71d

View File

@@ -44,7 +44,7 @@ void ntpInit() {
}
void synchTime() {
configTime(0, 0, "pool.ntp.org", "ru.pool.ntp.org", "pool.ntp.org");
configTime(0, 0, "pool.ntp.org", "ru.pool.ntp.org", jsonReadStr(settingsFlashJson, F("ntp")).c_str());
}
//событие смены даты