diff options
author | Keith Packard <keithp@keithp.com> | 2010-08-23 22:01:11 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-08-23 22:01:11 -0700 |
commit | c3f57ffdb6c74de90d982eacd604e658ce9b00a5 (patch) | |
tree | 6ced8e071833e615a59e50bf565d9d383e773358 | |
parent | 8857ac5e43eac6db8d5594b8864df497a712242b (diff) |
altosui: flush serial output before waiting for reply
-rw-r--r-- | ao-tools/altosui/AltosSerial.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosSerial.java b/ao-tools/altosui/AltosSerial.java index a62f1225..d02e25a9 100644 --- a/ao-tools/altosui/AltosSerial.java +++ b/ao-tools/altosui/AltosSerial.java @@ -84,7 +84,9 @@ public class AltosSerial implements Runnable { } public String get_reply() throws InterruptedException { - return reply_queue.take(); + libaltos.altos_flush(altos); + String line = reply_queue.take(); + return line; } public void add_monitor(LinkedBlockingQueue<String> q) { |