fix 124 - we now fallback to nema if we can't talk ublox protocol to

the GPS.  Though we are super power inefficient about it so TODO/FIXME
someday to decrease our power draw.
This commit is contained in:
geeksville
2020-05-04 20:02:43 -07:00
parent c2be6c4068
commit dcd1f7478a
5 changed files with 44 additions and 33 deletions

View File

@@ -61,7 +61,7 @@ void perhapsSetRTC(struct tm &t)
tv.tv_sec = res;
tv.tv_usec = 0; // time.centisecond() * (10 / 1000);
DEBUG_MSG("Got time from GPS month=%d, year=%d, unixtime=%ld\n", t.tm_mon, t.tm_year, tv.tv_sec);
// DEBUG_MSG("Got time from GPS month=%d, year=%d, unixtime=%ld\n", t.tm_mon, t.tm_year, tv.tv_sec);
if (t.tm_year < 0 || t.tm_year >= 300)
DEBUG_MSG("Ignoring invalid GPS time\n");
else