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)
commit803203197e51e71e9c77b3610047fd5bf9a56c56
treebce2aa1967673f46fba447fdb98c4911f203bf3a
parentfe7eba2e4af36cf29d8dc2378ac6985be04f68c6
altosui: Deal with eeprom dates going backwards across wrap

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>
ao-tools/altosui/AltosEepromIterable.java