diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-27 23:42:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-27 23:42:52 -0700 |
commit | e4407afb514437ccd8db79ae29c6fa203140fa07 (patch) | |
tree | 73617e0eccfb5e0476ad57022bb5a0967d429ce5 | |
parent | c0af53c03d7945f7400496216ee259d73fb04843 (diff) |
altoslib: Recover from a couple of API changes
Nothing serious.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altosui/AltosFlightStatus.java | 8 | ||||
-rw-r--r-- | telegps/TeleGPSGraphUI.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/altosui/AltosFlightStatus.java b/altosui/AltosFlightStatus.java index 26f0379a..2ff76870 100644 --- a/altosui/AltosFlightStatus.java +++ b/altosui/AltosFlightStatus.java @@ -93,14 +93,14 @@ public class AltosFlightStatus extends JComponent implements AltosFlightDisplay } void show(AltosState state, AltosListenerState listener_state) { - if (!same_call(state.callsign)) { + if (!same_call(state.cal_data.callsign)) { show(); - value.setText(state.callsign); - if (state.callsign == null) + value.setText(state.cal_data.callsign); + if (state.cal_data.callsign == null) setVisible(false); else setVisible(true); - last_call = state.callsign; + last_call = state.cal_data.callsign; } } diff --git a/telegps/TeleGPSGraphUI.java b/telegps/TeleGPSGraphUI.java index 3e765640..85238d7b 100644 --- a/telegps/TeleGPSGraphUI.java +++ b/telegps/TeleGPSGraphUI.java @@ -105,7 +105,7 @@ public class TeleGPSGraphUI extends AltosUIFrame implements AltosFontListener, A enable = new AltosUIEnable(); stats = new AltosFlightStats(flight_series); - graph = new AltosGraphNew(enable, stats, flight_series, cal_data); + graph = new AltosGraphNew(enable, stats, flight_series); statsTable = new AltosFlightStatsTable(stats); |