kopia lustrzana https://github.com/meshtastic/firmware
Increased NTP update frequency to 1024 seconds
rodzic
38913bb661
commit
7799e1b7e6
|
@ -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;
|
||||||
|
|
Ładowanie…
Reference in New Issue