diff options
author | Keith Packard <keithp@keithp.com> | 2012-01-02 22:35:41 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-02 22:35:41 -0800 |
commit | be5e0768a43327a71d994fdeb120a41fa0f342a9 (patch) | |
tree | b48a1138c844db1eec035eede03f797b7058040c /altosui/AltosScanUI.java | |
parent | e2b746e1a69eb672c02b63bb549bb2f8ece5b8e9 (diff) |
altosui: Move telemetry reader &c to altoslib
Move all of the device and file reading code into altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosScanUI.java')
-rw-r--r-- | altosui/AltosScanUI.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosScanUI.java b/altosui/AltosScanUI.java index 1be8aa26..44eeda6d 100644 --- a/altosui/AltosScanUI.java +++ b/altosui/AltosScanUI.java @@ -208,7 +208,7 @@ public class AltosScanUI } void next() throws InterruptedException, TimeoutException { - reader.serial.set_monitor(false); + reader.set_monitor(false); Thread.sleep(100); ++frequency_index; if (frequency_index >= frequencies.length || @@ -224,7 +224,7 @@ public class AltosScanUI } set_frequency(); set_label(); - reader.serial.set_monitor(true); + reader.set_monitor(true); } @@ -312,7 +312,7 @@ public class AltosScanUI if (device == null) return false; try { - reader = new AltosTelemetryReader(device); + reader = new AltosTelemetryReader(new AltosSerial(device)); set_frequency(); set_telemetry(); try { |