altos: Switch telemini from v0.1 to v1.0
[fw/altos] / altosui / AltosSerial.java
index c0eeb92084a446a1e1537b65dd3117f0a73ce076..5e496d7f3d8070181018d48edc09c50255fc0a38 100644 (file)
@@ -217,7 +217,8 @@ public class AltosSerial implements Runnable {
 
                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) {
@@ -348,6 +349,7 @@ public class AltosSerial implements Runnable {
                                       setting, telemetry_len());
                        else
                                printf("c R %d\nc r 0\n", setting);
+                       flush_output();
                }
        }