From 7799e1b7e6a2ad219aa8da6e2ed4ec80e797dbbd Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Thu, 12 May 2022 22:06:36 +1000 Subject: [PATCH] Increased NTP update frequency to 1024 seconds --- src/mesh/http/WiFiAPClient.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesh/http/WiFiAPClient.cpp b/src/mesh/http/WiFiAPClient.cpp index d034bea91..2aeb23a92 100644 --- a/src/mesh/http/WiFiAPClient.cpp +++ b/src/mesh/http/WiFiAPClient.cpp @@ -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;