fix for gps time sync

This commit is contained in:
Klaus K Wilting 2020-10-09 22:45:44 +02:00
parent d34b164537
commit 93408a9e81

View File

@ -170,8 +170,10 @@ void gps_loop(void *pvParameters) {
// (only) while device time is not set or unsynched, and we have a valid
// GPS time, we trigger a device time update to poll time from GPS
if (timeSource == _unsynced && gpstime.isUpdated())
if (timeSource == _unsynced && gpstime.isUpdated()) {
now();
calibrateTime();
}
} // if