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/AltosFlightSeries.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/AltosFlightSeries.java')
-rw-r--r-- | altoslib/AltosFlightSeries.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altoslib/AltosFlightSeries.java b/altoslib/AltosFlightSeries.java index 944cff31..5cf552fc 100644 --- a/altoslib/AltosFlightSeries.java +++ b/altoslib/AltosFlightSeries.java @@ -216,7 +216,7 @@ public class AltosFlightSeries extends AltosDataListener { private void compute_height() { double ground_altitude = cal_data.ground_altitude; - if (height_series == null && ground_altitude != AltosLib.MISSING) { + if (height_series == null && ground_altitude != AltosLib.MISSING && altitude_series != null) { height_series = add_series(height_name, AltosConvert.height); for (AltosTimeValue alt : altitude_series) height_series.add(alt.time, alt.value - ground_altitude); |