瀏覽代碼

Fix M810 macro multiple use

Fixes #17125
Scott Lahteine 4 年之前
父節點
當前提交
318a16637b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      Marlin/src/gcode/gcode.cpp

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

@@ -930,6 +930,7 @@ void GcodeSuite::process_subcommands_now(char * gcode) {
930 930
     char * const delim = strchr(gcode, '\n');         // Get address of next newline
931 931
     if (delim) *delim = '\0';                         // Replace with nul
932 932
     parser.parse(gcode);                              // Parse the current command
933
+    if (delim) *delim = '\n';                         // Put back the newline
933 934
     process_parsed_command(true);                     // Process it
934 935
     if (!delim) break;                                // Last command?
935 936
     gcode = delim + 1;                                // Get the next command

Loading…
取消
儲存