Browse Source

Fix M810 macro multiple use

Fixes #17125
Scott Lahteine 4 years ago
parent
commit
318a16637b
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Marlin/src/gcode/gcode.cpp

+ 1
- 0
Marlin/src/gcode/gcode.cpp View File

@@ -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…
Cancel
Save