summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-19 21:30:49 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-19 21:30:49 +0100
commitf35b5d28db9da41d4f5bbd2647df6bab7ddfe9d4 (patch)
treefa9557c2dc5abe63d5b946c8591e5dc45a6b57ef
parentdf5d9c77f4a75ee74b4bbac68fd21e601f8b0985 (diff)
stmhal/pyexec.c: Make raw REPL mode 8-bit clean.
-rw-r--r--stmhal/pyexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index 95776f3ec..44a931622 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -141,9 +141,9 @@ raw_repl_reset:
} else if (c == CHAR_CTRL_D) {
// input finished
break;
- } else if (c <= 127) {
- // let through any other ASCII character
- vstr_add_char(&line, c);
+ } else {
+ // let through any other raw 8-bit value
+ vstr_add_byte(&line, c);
}
}