Explorar el Código

Fix unknown command on empty lines (#16867)

Giuliano Zaro hace 4 años
padre
commit
42208bc031
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Marlin/src/gcode/queue.cpp

+ 2
- 2
Marlin/src/gcode/queue.cpp Ver fichero

@@ -415,7 +415,7 @@ void GCodeQueue::get_serial_commands() {
415 415
 
416 416
       if (serial_char == '\n' || serial_char == '\r') {
417 417
 
418
-        process_line_done(serial_input_state[i], serial_line_buffer[i], serial_count[i]);
418
+        if (process_line_done(serial_input_state[i], serial_line_buffer[i], serial_count[i])) continue;
419 419
 
420 420
         char* command = serial_line_buffer[i];
421 421
 
@@ -550,7 +550,7 @@ void GCodeQueue::get_serial_commands() {
550 550
         else if (n < 0)
551 551
           SERIAL_ERROR_MSG(MSG_SD_ERR_READ);
552 552
 
553
-        process_line_done(sd_input_state, command_buffer[index_w], sd_count);
553
+        if (process_line_done(sd_input_state, command_buffer[index_w], sd_count)) continue;
554 554
 
555 555
         _commit_command(false);
556 556
 

Loading…
Cancelar
Guardar