X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosDebug.java;h=d18de80d09d36e0fe9d84f0652f79bbdbd533d5a;hp=8d435b667d5ecb584b118bed27a5d9945b4abb92;hb=924d56a4d2d8b16530cd378b18cfc5d6e08420ed;hpb=dcd15032eec45f3fdd003050710ebd5b85052662 diff --git a/altosui/AltosDebug.java b/altosui/AltosDebug.java index 8d435b66..d18de80d 100644 --- a/altosui/AltosDebug.java +++ b/altosui/AltosDebug.java @@ -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; } }