altosui: Ensure serial line is flushed after disabling remote link
authorKeith Packard <keithp@keithp.com>
Sat, 15 Jan 2011 00:47:19 +0000 (16:47 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 15 Jan 2011 00:48:29 +0000 (16:48 -0800)
Flush the '~' character.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosSerial.java

index 6dce6f3d284c3b2326f6990a561dbe80c153a217..78da5d1f196f5fe4243e37d4ceaac5361a74786c 100644 (file)
@@ -250,6 +250,7 @@ public class AltosSerial implements Runnable {
 
        public void stop_remote() {
                printf ("~");
+               flush_output();
        }
 
        public AltosSerial(AltosDevice in_device) throws FileNotFoundException, AltosSerialInUseException {