altosui: Deal with eeprom dates going backwards across wrap
authorKeith Packard <keithp@keithp.com>
Tue, 28 Sep 2010 01:52:30 +0000 (18:52 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 28 Sep 2010 01:52:30 +0000 (18:52 -0700)
eeprom timestamps can go backwards as the GPS time stamps are
recorded when the first GPS character is received, but not placed into
the eeprom log until the last GPS packet is complete. If this happens
at the same time the tick count is wrapping, then the tick count will
wrap backwards across the 0 boundary causing time to jump forwards.

Fix this by letting time go backwards across the tick boundary, which
requires that we know when the first 'real' tick is read from the
eeprom file.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found