浏览代码

Minor process_subcommands_now followup

Scott Lahteine 4 年前
父节点
当前提交
22fc59ab59
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/gcode/gcode.cpp

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

1049
     if (delim) *delim = '\0';                         // Replace with nul
1049
     if (delim) *delim = '\0';                         // Replace with nul
1050
     parser.parse(gcode);                              // Parse the current command
1050
     parser.parse(gcode);                              // Parse the current command
1051
     process_parsed_command(true);                     // Process it
1051
     process_parsed_command(true);                     // Process it
1052
-    if (delim) *delim = '\n';                         // Put back the newline
1053
     if (!delim) break;                                // Last command?
1052
     if (!delim) break;                                // Last command?
1053
+    *delim = '\n';                                    // Put back the newline
1054
     gcode = delim + 1;                                // Get the next command
1054
     gcode = delim + 1;                                // Get the next command
1055
   }
1055
   }
1056
   parser.parse(saved_cmd);                            // Restore the parser state
1056
   parser.parse(saved_cmd);                            // Restore the parser state

正在加载...
取消
保存