Merge pull request #708 from HouzuoGuo/gps-date-is-always-valid

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:
Verkehrsrot 2021-01-03 21:39:07 +01:00 committed by GitHub
commit 7fea7b6b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;