When GPZDA time-of-day is considered valid by TinyGps lib, the date is also valid, though not indicated by return value of isValid()
This commit is contained in:
parent
690c843ccf
commit
cb0680b623
@ -109,7 +109,7 @@ time_t get_gpstime(uint16_t *msec) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// did we get a current date & time?
|
// did we get a current date & time?
|
||||||
if (gpstime.isValid() && gpsday.isValid()) {
|
if (gpstime.isValid()) {
|
||||||
|
|
||||||
time_t t = 0;
|
time_t t = 0;
|
||||||
tmElements_t tm;
|
tmElements_t tm;
|
||||||
@ -188,4 +188,4 @@ void gps_loop(void *pvParameters) {
|
|||||||
|
|
||||||
} // gps_loop()
|
} // gps_loop()
|
||||||
|
|
||||||
#endif // HAS_GPS
|
#endif // HAS_GPS
|
||||||
|
Loading…
Reference in New Issue
Block a user