summaryrefslogtreecommitdiff
path: root/altoslib/AltosEeprom.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-11 18:48:11 -0700
committerKeith Packard <keithp@keithp.com>2014-06-11 18:48:11 -0700
commita8325483adb8d9ffda62d3f4900cf52bde70ff62 (patch)
treec567d87873a137cad9feecfc5b86cdda964062f8 /altoslib/AltosEeprom.java
parentdb2443fdbf65b65703217174303027c439124a83 (diff)
altoslib: Use GPS seconds as an additional sort key for TeleGPS eeprom
Long idle periods with TeleGPS can easily overflow 16 bits of tick count. Using the GPS seconds provides an additional sort which will span the tick wrap-around. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosEeprom.java')
-rw-r--r--altoslib/AltosEeprom.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosEeprom.java b/altoslib/AltosEeprom.java
index be18ba24..020590eb 100644
--- a/altoslib/AltosEeprom.java
+++ b/altoslib/AltosEeprom.java
@@ -43,6 +43,10 @@ public abstract class AltosEeprom implements AltosStateUpdate {
return data8[i] | (data8[i+1] << 8) | (data8[i+2] << 16) | (data8[i+3] << 24);
}
+ public boolean has_seconds() { return false; }
+
+ public int seconds() { return 0; }
+
public final static int header_length = 4;
public abstract int record_length();