projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
altosui: flush replies from serial link when entering debug mode
[fw/altos]
/
ao-tools
/
altosui
/
AltosDebug.java
diff --git
a/ao-tools/altosui/AltosDebug.java
b/ao-tools/altosui/AltosDebug.java
index 83ea5bcbf9f0c9abc1068fbfb317187f1eaaa2d7..06c9a0bdb9808eadac132843ce3eab38c420b5ab 100644
(file)
--- a/
ao-tools/altosui/AltosDebug.java
+++ b/
ao-tools/altosui/AltosDebug.java
@@
-97,7
+97,8
@@
public class AltosDebug extends AltosSerial {
void ensure_debug_mode() {
if (!debug_mode) {
- printf("D\n");
+ printf("m 0\nD\n");
+ flush_reply();
debug_mode = true;
}
}