firmware/src/gps
Tom Fifield 3040e5a7bb Fix GPS that hard code 2080 as the start time. (#7803)
* Fix GPS that hard code 2080 as the start time.

Some GPS chips, such as the AG3335 in T1000e and L96 have a hardcoded
time of 2080-01-05 when they start up.

To fix that in a way that seems permanent, let's ignore times that
are more than 40 years since the firmware was built. We should followup
in late 2039 to see if any changes are needed.

Reported-By: @b8b8

* Update src/gps/RTC.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Put FORTY_YEARS in header and use in both places.

* Restore Ben's nicer log lines.

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-02 06:41:26 -05:00
..
cas.h A second round of cleanup on GPS.h. (#5433) 2024-11-25 05:32:04 -06:00
GeoCoord.cpp Clean up some inline functions (#5454) 2024-11-26 14:00:10 -06:00
GeoCoord.h Clean up some inline functions (#5454) 2024-11-26 14:00:10 -06:00
GPS.cpp Hold for 20s after GPS lock (#7801) 2025-09-02 06:06:06 -05:00
GPS.h Hold for 20s after GPS lock (#7801) 2025-09-02 06:06:06 -05:00
GPSUpdateScheduling.cpp More reduction (#5256) 2024-11-04 19:15:59 -06:00
GPSUpdateScheduling.h Revert "Sync Wio lr1110 refresh with master (#4288)" 2024-07-22 15:30:36 +02:00
NMEAWPL.cpp Fixed NMEA sentence issue in CalTopo as well as bug with no printing all of the nodes (#5412) 2024-11-21 20:13:30 +08:00
NMEAWPL.h
RTC.cpp Fix GPS that hard code 2080 as the start time. (#7803) 2025-09-02 06:41:26 -05:00
RTC.h Fix GPS that hard code 2080 as the start time. (#7803) 2025-09-02 06:41:26 -05:00
ubx.h chore: update ubx.h (#6522) 2025-04-08 14:04:33 -05:00