summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-03 22:11:43 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-03 22:11:43 +0100
commitd8b47d3e027de49cb06ab619cedfe072e6ebded8 (patch)
tree8d4992f0a5004c6ba9fb582b7c6a006b6eb9ec08
parent769b23a9c68e8b7a4a5570f9b8e0ae73ef5ef172 (diff)
downloadmicropython-d8b47d3e027de49cb06ab619cedfe072e6ebded8.tar.gz
micropython-d8b47d3e027de49cb06ab619cedfe072e6ebded8.zip
stmhal: Fix raw REPL so that it passes through more ASCII chars.
-rw-r--r--stmhal/pyexec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index ffee4dd2e2..999264d1cb 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -120,9 +120,8 @@ raw_repl_reset:
} else if (c == VCP_CHAR_CTRL_D) {
// input finished
break;
- } else if (c == '\r') {
- vstr_add_char(&line, '\n');
- } else if (32 <= c && c <= 126) {
+ } else if (c <= 127) {
+ // let through any other ASCII character
vstr_add_char(&line, c);
}
}