altosui: flush replies from serial link when entering debug mode
[fw/altos] / ao-tools / altosui / AltosDebug.java
index df40410aae4ddd21dd16006b57bcff8278c36283..06c9a0bdb9808eadac132843ce3eab38c420b5ab 100644 (file)
@@ -98,6 +98,7 @@ public class AltosDebug extends AltosSerial {
        void ensure_debug_mode() {
                if (!debug_mode) {
                        printf("m 0\nD\n");
+                       flush_reply();
                        debug_mode = true;
                }
        }