diff options
author | Keith Packard <keithp@keithp.com> | 2010-09-03 11:48:55 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-09-03 11:48:55 -0700 |
commit | d4f64e95e31e2335470efc15df2ab357b7d197f3 (patch) | |
tree | af2d8b310e3dd43035da89a1c59667842e3941c6 | |
parent | 71191ecef3ba0e00d0f8a7cd1a24982bfa44ec72 (diff) |
Revert "altosui: Deal with altos bug setting radio channel while monitoring"
This reverts commit ba65e4aeb952a1cf49a77f1e24e235508fcea71f.
Testing the old code
-rw-r--r-- | ao-tools/altosui/AltosSerial.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/ao-tools/altosui/AltosSerial.java b/ao-tools/altosui/AltosSerial.java index c4a7ad76..c3daf3b9 100644 --- a/ao-tools/altosui/AltosSerial.java +++ b/ao-tools/altosui/AltosSerial.java @@ -186,14 +186,10 @@ public class AltosSerial implements Runnable { public void set_channel(int channel) { if (altos != null) { - if (monitor_mode) { - printf("m 0\n"); - flush_input(); - } - printf("c r %d\n", channel); if (monitor_mode) - printf("m 1\n"); - flush_input(); + printf("m 0\nc r %d\nm 1\n", channel); + else + printf("c r %d\n", channel); } } @@ -202,10 +198,8 @@ public class AltosSerial implements Runnable { if (altos != null) { if (monitor) printf("m 1\n"); - else { + else printf("m 0\n"); - flush_input(); - } } } |