From: Keith Packard Date: Tue, 28 Sep 2010 01:52:30 +0000 (-0700) Subject: altosui: Deal with eeprom dates going backwards across wrap X-Git-Tag: debian/0.7.1+28+gd8a2f4c~6^2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=803203197e51e71e9c77b3610047fd5bf9a56c56;hp=803203197e51e71e9c77b3610047fd5bf9a56c56 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 ---