diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-10 10:18:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-10 10:18:44 -0700 |
commit | ff13cf1359e1f4ae33b16a5867fd364993566b65 (patch) | |
tree | 20ca8cf133a5b04b5179963cad57469f367299fc /altoslib/AltosEepromFile.java | |
parent | 871fb4753a3b54cc2e22309e80e24dfe9cc54511 (diff) |
altoslib: Add new 'stateless' flight state for TeleGPS
TeleGPS has no flight state, so add a new 'stateless' state for code
to handle this case differently than any of the existing states
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosEepromFile.java')
-rw-r--r-- | altoslib/AltosEepromFile.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/altoslib/AltosEepromFile.java b/altoslib/AltosEepromFile.java index f59585f8..b7e446ce 100644 --- a/altoslib/AltosEepromFile.java +++ b/altoslib/AltosEepromFile.java @@ -72,7 +72,8 @@ public class AltosEepromFile extends AltosStateIterable { headers = new AltosEepromIterable(AltosEepromHeader.read(input)); start = headers.state(); - start.set_state(AltosLib.ao_flight_pad); + if (start.state != AltosLib.ao_flight_stateless) + start.set_state(AltosLib.ao_flight_pad); if (start.log_format == AltosLib.MISSING) { if (start.product != null) { |