瀏覽代碼

Fix unknown command on empty lines (#16867)

Giuliano Zaro 4 年之前
父節點
當前提交
42208bc031
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Marlin/src/gcode/queue.cpp

+ 2
- 2
Marlin/src/gcode/queue.cpp 查看文件

@@ -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…
取消
儲存