Skip to content

Commit d8b47d3

Browse files
committed
stmhal: Fix raw REPL so that it passes through more ASCII chars.
1 parent 769b23a commit d8b47d3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stmhal/pyexec.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ int pyexec_raw_repl(void) {
120120
} else if (c == VCP_CHAR_CTRL_D) {
121121
// input finished
122122
break;
123-
} else if (c == '\r') {
124-
vstr_add_char(&line, '\n');
125-
} else if (32 <= c && c <= 126) {
123+
} else if (c <= 127) {
124+
// let through any other ASCII character
126125
vstr_add_char(&line, c);
127126
}
128127
}

0 commit comments

Comments
 (0)