summaryrefslogtreecommitdiff
path: root/altoslib/AltosTelemetry.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-02 16:55:18 -0700
committerKeith Packard <keithp@keithp.com>2017-10-02 16:55:18 -0700
commitde2b6ec1cdfd48c948bff7edbfe2540440429b1b (patch)
treeaa9754d515f020a6992ff4787e936be466bc9799 /altoslib/AltosTelemetry.java
parent322c1abead39cb398380dff384cd274c19dd81dd (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/AltosTelemetry.java')
-rw-r--r--altoslib/AltosTelemetry.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosTelemetry.java b/altoslib/AltosTelemetry.java
index f17e1171..fe536c6a 100644
--- a/altoslib/AltosTelemetry.java
+++ b/altoslib/AltosTelemetry.java
@@ -51,7 +51,7 @@ public abstract class AltosTelemetry implements AltosDataProvider {
public void provide_data(AltosDataListener listener) {
listener.set_serial(serial());
- if (listener.state == AltosLib.ao_flight_invalid)
+ if (listener.state() == AltosLib.ao_flight_invalid)
listener.set_state(AltosLib.ao_flight_startup);
if (frequency != AltosLib.MISSING)
listener.set_frequency(frequency);