Quellcode durchsuchen

Fix M810 macro multiple use

Fixes #17125
Scott Lahteine vor 4 Jahren
Ursprung
Commit
318a16637b
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1
    0
      Marlin/src/gcode/gcode.cpp

+ 1
- 0
Marlin/src/gcode/gcode.cpp Datei anzeigen

@@ -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

Laden…
Abbrechen
Speichern