altos: Switch telemini from v0.1 to v1.0
[fw/altos] / altosui / AltosSerial.java
index 6c687f5f17c0ab21c93f715b5a3e7e368dcd0ba1..5e496d7f3d8070181018d48edc09c50255fc0a38 100644 (file)
@@ -215,10 +215,10 @@ public class AltosSerial implements Runnable {
                boolean can_cancel = true;
                ++in_reply;
 
-               System.out.printf("get_reply %d\n", timeout);
                if (SwingUtilities.isEventDispatchThread()) {
                        can_cancel = false;
-                       System.out.printf("Uh-oh, reading serial device from swing thread\n");
+                       if (remote)
+                               System.out.printf("Uh-oh, reading remote serial device from swing thread\n");
                }
                flush_output();
                if (remote && can_cancel) {
@@ -246,7 +246,6 @@ public class AltosSerial implements Runnable {
 
        public String get_reply_no_dialog(int timeout) throws InterruptedException, TimeoutException {
                flush_output();
-               System.out.printf("get_reply_no_dialog\n");
                AltosLine line = reply_queue.poll(timeout, TimeUnit.MILLISECONDS);
                if (line != null)
                        return line.line;
@@ -350,6 +349,7 @@ public class AltosSerial implements Runnable {
                                       setting, telemetry_len());
                        else
                                printf("c R %d\nc r 0\n", setting);
+                       flush_output();
                }
        }