diff options
author | Keith Packard <keithp@keithp.com> | 2017-10-02 16:55:18 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-10-02 16:55:18 -0700 |
commit | de2b6ec1cdfd48c948bff7edbfe2540440429b1b (patch) | |
tree | aa9754d515f020a6992ff4787e936be466bc9799 /altoslib/AltosCalData.java | |
parent | 322c1abead39cb398380dff384cd274c19dd81dd (diff) |
altoslib,altosuilib,altosui: log_format/device_type TeleGPS selects stateless
When the device being analyzed has no flight state, we want to use the
'stateless' state so that the UI can display reasonable
information. This bit was lost in the recent AltosState shuffle and
this patch brings it back.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosCalData.java')
-rw-r--r-- | altoslib/AltosCalData.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/altoslib/AltosCalData.java b/altoslib/AltosCalData.java index 6258c1a8..7415d5ad 100644 --- a/altoslib/AltosCalData.java +++ b/altoslib/AltosCalData.java @@ -72,6 +72,13 @@ public class AltosCalData { } } + public int log_format = AltosLib.MISSING; + + public void set_log_format(int log_format) { + if (log_format != AltosLib.MISSING) + this.log_format = log_format; + } + public int config_major = AltosLib.MISSING; public int config_minor = AltosLib.MISSING; public int flight_log_max = AltosLib.MISSING; |