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