Fix M810 macro multiple use

Fixes #17125
This commit is contained in:
Scott Lahteine 2020-03-11 17:15:33 -05:00
parent 8bad6e11e2
commit 318a16637b

View file

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