Browse Source

Fix unknown command on empty lines (#16867)

Giuliano Zaro 5 years ago
parent
commit
42208bc031
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/queue.cpp

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

415
 
415
 
416
       if (serial_char == '\n' || serial_char == '\r') {
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
         char* command = serial_line_buffer[i];
420
         char* command = serial_line_buffer[i];
421
 
421
 
550
         else if (n < 0)
550
         else if (n < 0)
551
           SERIAL_ERROR_MSG(MSG_SD_ERR_READ);
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
         _commit_command(false);
555
         _commit_command(false);
556
 
556
 

Loading…
Cancel
Save