Skip to content

Commit

Permalink
Fix handling of escapes in serial input
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Feb 9, 2018
1 parent cc9cef7 commit da693a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da693a6

Please sign in to comment.