Increased NTP update frequency to 1024 seconds

This commit is contained in:
Sacha Weatherstone 2022-05-12 22:06:36 +10:00
parent 38913bb661
commit 7799e1b7e6
No known key found for this signature in database
GPG Key ID: 7AB2D7E206124B31

View File

@ -80,7 +80,6 @@ static int32_t reconnectWiFi()
} }
#ifndef DISABLE_NTP #ifndef DISABLE_NTP
// if (*wifiName) {
if (WiFi.isConnected()) { if (WiFi.isConnected()) {
DEBUG_MSG("Updating NTP time\n"); DEBUG_MSG("Updating NTP time\n");
if (timeClient.update()) { if (timeClient.update()) {
@ -98,7 +97,7 @@ static int32_t reconnectWiFi()
} }
#endif #endif
return 30 * 1000; // every 30 seconds return 1024 * 1000; // every 1024 seconds
} }
static Periodic *wifiReconnect; static Periodic *wifiReconnect;