Skip to content

Commit f35b5d2

Browse files
committed
stmhal/pyexec.c: Make raw REPL mode 8-bit clean.
1 parent df5d9c7 commit f35b5d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stmhal/pyexec.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ int pyexec_raw_repl(void) {
141141
} else if (c == CHAR_CTRL_D) {
142142
// input finished
143143
break;
144-
} else if (c <= 127) {
145-
// let through any other ASCII character
146-
vstr_add_char(&line, c);
144+
} else {
145+
// let through any other raw 8-bit value
146+
vstr_add_byte(&line, c);
147147
}
148148
}
149149

0 commit comments

Comments
 (0)