diff options
| author | Bdale Garbee <bdale@gag.com> | 2010-08-23 23:11:22 -0600 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2010-08-23 23:11:22 -0600 |
| commit | 295043112ccde35092945c286596f9045ee6fa05 (patch) | |
| tree | 9d97f7d8021b768dd0cb0c5d9a2b28b29146e99e /ao-tools/altosui/AltosSerial.java | |
| parent | 2007288da8a83e3aa925e11cc196f1c65aab2e5c (diff) | |
| parent | ef8376c4dd8262a34e02b6bb9e19e907ac2f4330 (diff) | |
Merge branch 'new-packet-format' of ssh://git.gag.com/scm/git/fw/altos into new-package-format
Diffstat (limited to 'ao-tools/altosui/AltosSerial.java')
| -rw-r--r-- | ao-tools/altosui/AltosSerial.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosSerial.java b/ao-tools/altosui/AltosSerial.java index ba00b55e..d02e25a9 100644 --- a/ao-tools/altosui/AltosSerial.java +++ b/ao-tools/altosui/AltosSerial.java @@ -79,8 +79,14 @@ public class AltosSerial implements Runnable { } } + public void flush_reply() { + reply_queue.clear(); + } + 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) { |
