Added forcing NTP update on Time&macro save.

pull/2737/head
Blaz Kristan 2021-12-29 17:03:03 +01:00
rodzic a9a06a1e4e
commit 2a27cc46e2
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -292,6 +292,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
//start ntp if not already connected
if (ntpEnabled && WLED_CONNECTED && !ntpConnected) ntpConnected = ntpUdp.begin(ntpLocalPort);
ntpLastSyncTime = 0; // force new NTP query
longitude = request->arg(F("LN")).toFloat();
latitude = request->arg(F("LT")).toFloat();