clean up all existing lintian warnings
[fw/altos] / altosui / AltosSerial.java
index 8f8f99d7f458088aaa62abf3eb66cff23fb3e7af..f45aa18b313c96e19a891e96ce4fe946628c603d 100644 (file)
@@ -239,6 +239,7 @@ public class AltosSerial implements Runnable {
                                --in_reply;
                                return line.line;
                        }
+                       System.out.printf("no line remote %b can_cancel %b\n", remote, can_cancel);
                        if (!remote || !can_cancel || check_timeout()) {
                                --in_reply;
                                return null;
@@ -246,6 +247,14 @@ public class AltosSerial implements Runnable {
                }
        }
 
+       public String get_reply_no_dialog(int timeout) throws InterruptedException, TimeoutException {
+               flush_output();
+               AltosLine line = reply_queue.poll(timeout, TimeUnit.MILLISECONDS);
+               if (line != null)
+                       return line.line;
+               return null;
+       }
+
        public void add_monitor(LinkedBlockingQueue<AltosLine> q) {
                set_monitor(true);
                monitors.add(q);