Skip to content
Snippets Groups Projects
Commit da693a63 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix handling of escapes in serial input

parent cc9cef7f
Branches
Tags
No related merge requests found
......@@ -389,7 +389,7 @@ inline void get_serial_commands() {
else if (serial_char == '\\') { // Handle escapes
// if we have one more character, copy it over
if ((c = read_serial(i)) >= 0 && !serial_comment_mode[i])
serial_line_buffer[i][serial_count[i]++] = serial_char;
serial_line_buffer[i][serial_count[i]++] = (char)c;
}
else { // it's not a newline, carriage return or escape char
if (serial_char == ';') serial_comment_mode[i] = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment