Browse Source

Minor process_subcommands_now followup

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
committed by Scott Lahteine
parent
commit
c9674cd809
  1. 2
      Marlin/src/gcode/gcode.cpp

2
Marlin/src/gcode/gcode.cpp

@ -1049,8 +1049,8 @@ void GcodeSuite::process_subcommands_now(char * gcode) {
if (delim) *delim = '\0'; // Replace with nul if (delim) *delim = '\0'; // Replace with nul
parser.parse(gcode); // Parse the current command parser.parse(gcode); // Parse the current command
process_parsed_command(true); // Process it process_parsed_command(true); // Process it
if (delim) *delim = '\n'; // Put back the newline
if (!delim) break; // Last command? if (!delim) break; // Last command?
*delim = '\n'; // Put back the newline
gcode = delim + 1; // Get the next command gcode = delim + 1; // Get the next command
} }
parser.parse(saved_cmd); // Restore the parser state parser.parse(saved_cmd); // Restore the parser state

Loading…
Cancel
Save