mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 18:22:32 +00:00
Increased NTP update frequency to 1024 seconds
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user