- fix NTP sync on connect

- disable extended GPS mode again
- add --inline-suppr to cppflags
This commit is contained in:
Thomas Göttgens
2022-11-22 17:19:24 +01:00
parent fe989f0bff
commit adbed5de95
2 changed files with 4 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ static int32_t reconnectWiFi()
}
#ifndef DISABLE_NTP
if (WiFi.isConnected() && ((millis() - lastrun_ntp) > 43200000)) { // every 12 hours
if (WiFi.isConnected() && (((millis() - lastrun_ntp) > 43200000) || (lastrun_ntp == 0))) { // every 12 hours
DEBUG_MSG("Updating NTP time\n");
if (timeClient.update()) {
DEBUG_MSG("NTP Request Success - Setting RTCQualityNTP if needed\n");