Skip to content

Commit

Permalink
Fix M810 macro multiple use
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and oechslein committed Mar 21, 2020
1 parent 97495d5 commit 1628050
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Marlin/src/gcode/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1628050

Please sign in to comment.