mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-22 09:31:10 +00:00
Increased NTP update frequency to 1024 seconds
This commit is contained in:
parent
38913bb661
commit
7799e1b7e6
@ -80,7 +80,6 @@ static int32_t reconnectWiFi()
|
||||
}
|
||||
|
||||
#ifndef DISABLE_NTP
|
||||
// if (*wifiName) {
|
||||
if (WiFi.isConnected()) {
|
||||
DEBUG_MSG("Updating NTP time\n");
|
||||
if (timeClient.update()) {
|
||||
@ -98,7 +97,7 @@ static int32_t reconnectWiFi()
|
||||
}
|
||||
#endif
|
||||
|
||||
return 30 * 1000; // every 30 seconds
|
||||
return 1024 * 1000; // every 1024 seconds
|
||||
}
|
||||
|
||||
static Periodic *wifiReconnect;
|
||||
|
Loading…
Reference in New Issue
Block a user