mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Fix handling of escapes in serial input
This commit is contained in:
parent
cc9cef7f7a
commit
da693a636e
@ -389,7 +389,7 @@ inline void get_serial_commands() {
|
|||||||
else if (serial_char == '\\') { // Handle escapes
|
else if (serial_char == '\\') { // Handle escapes
|
||||||
// if we have one more character, copy it over
|
// if we have one more character, copy it over
|
||||||
if ((c = read_serial(i)) >= 0 && !serial_comment_mode[i])
|
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
|
else { // it's not a newline, carriage return or escape char
|
||||||
if (serial_char == ';') serial_comment_mode[i] = true;
|
if (serial_char == ';') serial_comment_mode[i] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user