From b34f6f892c671df238d1d8acdf30630f205d7f70 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 4 Oct 2020 23:17:39 +0200 Subject: [PATCH] gpsread.cpp: comments edited --- src/gpsread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index b6395384..158b3e17 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -96,7 +96,7 @@ bool gps_hasfix() { gps.altitude.age() < 4000); } -// function to fetch current time from struct; note: this is costly +// function to poll current time from GPS data; note: this is costly time_t get_gpstime(uint16_t *msec) { time_t time_sec = 0; @@ -162,8 +162,8 @@ void gps_loop(void *pvParameters) { } #endif - // if time hasn't been synchronised yet, and we have a valid GPS time, - // update time from GPS. + // (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() && gpstime.isValid() && gpsday.isValid()) calibrateTime();