diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-26 00:51:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-26 00:51:37 -0700 |
commit | aa0300f11fe5b7f1d3e548e29dc809b803aa1f7a (patch) | |
tree | 2d35e4fea08964911f3a7159511ce4d9e4f0c439 /altosui/AltosFlightUI.java | |
parent | 2e82051a6aaaccf1e8a242f9c8141e4167e652d2 (diff) |
altoslib: Make AltosReplayReader start synchronously enough to track states
The Altos UI needs to see 'pad' state and then 'boost' state so that
it will automatically switch tabs during the flight. When reading from
eeprom files, the only way that is going to happen is if the reader
thread waits until the UI has definitely seen 'pad' state, which we do
by simply delaying the reader thread until after that has happened.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlightUI.java')
-rw-r--r-- | altosui/AltosFlightUI.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosFlightUI.java b/altosui/AltosFlightUI.java index 23a62e95..12277f89 100644 --- a/altosui/AltosFlightUI.java +++ b/altosui/AltosFlightUI.java @@ -147,7 +147,7 @@ public class AltosFlightUI extends AltosUIFrame implements AltosFlightDisplay { } } - if (state.gps != null && state.gps.connected) { + if (state.gps != null) { if (!has_map) { pane.add("Site Map", sitemap); has_map = true; |