diff options
author | Keith Packard <keithp@keithp.com> | 2013-08-29 19:24:51 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-08-29 19:24:51 -0500 |
commit | de8d9c5630ae46378c50faf97f7d2e97fe139e30 (patch) | |
tree | e8e41e4186c5d27e1a5184d915bdb9f08926fa7a /altosui/AltosScanUI.java | |
parent | ce1378385ef273010498e81c205f42d8e32c7dc1 (diff) |
altoslib, altosui: Restructured state management now does TM eeprom files
Removed uses of AltosRecord from AltosState, now just need to rewrite
the other AltosState changing code to match
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosScanUI.java')
-rw-r--r-- | altosui/AltosScanUI.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/altosui/AltosScanUI.java b/altosui/AltosScanUI.java index 0c903873..224e1e61 100644 --- a/altosui/AltosScanUI.java +++ b/altosui/AltosScanUI.java @@ -184,13 +184,13 @@ public class AltosScanUI try { for (;;) { try { - AltosRecord record = reader.read(); - if (record == null) + AltosState state = reader.read(); + if (state == null) continue; - if ((record.seen & AltosRecord.seen_flight) != 0) { - final AltosScanResult result = new AltosScanResult(record.callsign, - record.serial, - record.flight, + if (state.flight != AltosRecord.MISSING) { + final AltosScanResult result = new AltosScanResult(state.callsign, + state.serial, + state.flight, frequencies[frequency_index], telemetry); Runnable r = new Runnable() { |