diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-26 00:01:22 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-26 00:59:23 -0700 |
commit | 97517ee585462c2d355f23f999fb8d9ebd908ec1 (patch) | |
tree | 4f197e699297782dce92cd222d26f3b951266460 /altosui/AltosIgnite.java | |
parent | 2c121f1ef495e8af3eb39210baa40e212b691894 (diff) |
altosui: Allow TM config connection to be canceled.
This leaves the config UI connection attempt running and pops up a
dialog box when it takes 'too long' in the remote case so that users
with Tm or Tn devices can bring up the UI, and then boot the Tm/Tn
without needing to time things carefully.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosIgnite.java')
-rw-r--r-- | altosui/AltosIgnite.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/altosui/AltosIgnite.java b/altosui/AltosIgnite.java index 3cbd8a75..d3638140 100644 --- a/altosui/AltosIgnite.java +++ b/altosui/AltosIgnite.java @@ -36,11 +36,8 @@ public class AltosIgnite { private void start_serial() throws InterruptedException { serial_started = true; - if (remote) { - serial.set_radio(); - serial.printf("p\nE 0\n"); - serial.flush_input(); - } + if (remote) + serial.start_remote(); } private void stop_serial() throws InterruptedException { @@ -49,10 +46,8 @@ public class AltosIgnite { serial_started = false; if (serial == null) return; - if (remote) { - serial.printf("~"); - serial.flush_output(); - } + if (remote) + serial.stop_remote(); } class string_ref { |