altos: AltosSerial.flush_input shouldn't discard Interrupted exceptions
[fw/altos] / altosui / AltosDebug.java
index 8d435b667d5ecb584b118bed27a5d9945b4abb92..d18de80d09d36e0fe9d84f0652f79bbdbd533d5a 100644 (file)
@@ -62,7 +62,10 @@ public class AltosDebug extends AltosSerial {
        void ensure_debug_mode() {
                if (!debug_mode) {
                        printf("D\n");
-                       flush_input();
+                       try {
+                               flush_input();
+                       } catch (InterruptedException ie) {
+                       }
                        debug_mode = true;
                }
        }