Browse Source

Fix handling of escapes in serial input

Scott Lahteine 7 years ago
parent
commit
da693a636e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/queue.cpp

+ 1
- 1
Marlin/src/gcode/queue.cpp View File

@@ -389,7 +389,7 @@ inline void get_serial_commands() {
389 389
       else if (serial_char == '\\') {  // Handle escapes
390 390
         // if we have one more character, copy it over
391 391
         if ((c = read_serial(i)) >= 0 && !serial_comment_mode[i])
392
-          serial_line_buffer[i][serial_count[i]++] = serial_char;
392
+          serial_line_buffer[i][serial_count[i]++] = (char)c;
393 393
       }
394 394
       else { // it's not a newline, carriage return or escape char
395 395
         if (serial_char == ';') serial_comment_mode[i] = true;

Loading…
Cancel
Save