X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosDebug.java;h=d18de80d09d36e0fe9d84f0652f79bbdbd533d5a;hb=c8a00bb9ccdf0d4257f037c2bf996ce5e6b0b0c0;hp=8d435b667d5ecb584b118bed27a5d9945b4abb92;hpb=3fbefb3eea981d34a09496cf8abf0119de2e35bf;p=fw%2Faltos 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; } }