From cb0680b623942a71603a72f6d8c94a6bf5b70d6e Mon Sep 17 00:00:00 2001 From: HouzuoGuo Date: Sun, 3 Jan 2021 19:25:11 +0200 Subject: [PATCH] When GPZDA time-of-day is considered valid by TinyGps lib, the date is also valid, though not indicated by return value of isValid() --- src/gpsread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index 00e3c90a..3b764b55 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -109,7 +109,7 @@ time_t get_gpstime(uint16_t *msec) { #endif // did we get a current date & time? - if (gpstime.isValid() && gpsday.isValid()) { + if (gpstime.isValid()) { time_t t = 0; tmElements_t tm; @@ -188,4 +188,4 @@ void gps_loop(void *pvParameters) { } // gps_loop() -#endif // HAS_GPS \ No newline at end of file +#endif // HAS_GPS