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