diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-27 00:27:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-27 00:27:04 -0700 |
commit | b6b5c64f93fa56bcb22ea1c4279e4f754e6e6f1c (patch) | |
tree | 6ec6ecb767be291c8712030e0097fae051652637 /altoslib/AltosTelemetryFile.java | |
parent | 8b4dcca73c65e87462d5f8d08dbc025aa8cf08a6 (diff) |
altosdroid: Deal with AltosState changes
cal data split out from altos state.
altos state needed to have no-arguments constructor for JSON code.
Also messed with voice to make it stay quiet during app startup.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryFile.java')
-rw-r--r-- | altoslib/AltosTelemetryFile.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/altoslib/AltosTelemetryFile.java b/altoslib/AltosTelemetryFile.java index 46a5d060..40b9c9bf 100644 --- a/altoslib/AltosTelemetryFile.java +++ b/altoslib/AltosTelemetryFile.java @@ -123,6 +123,8 @@ public class AltosTelemetryFile implements AltosRecordSet { cal_data.set_tick(tick); if (cal_data.time() >= -1) telem.provide_data(listener, cal_data); + if (listener.state == AltosLib.ao_flight_landed) + break; } listener.finish(); } |