altoslib: Flush output when disabling remote
[fw/altos] / altoslib / AltosLink.java
index 9946b83586f18d082268fb86a0761da1ac92f7f9..b713b3dcc9cfebfb0bffc7f145c216b9aea0be79 100644 (file)
@@ -539,6 +539,7 @@ public abstract class AltosLink implements Runnable {
                if (debug)
                        System.out.printf("stop remote\n");
                try {
+                       flush_output();
                        flush_input();
                } finally {
                        printf ("~\n");