diff --git a/gcode_process.c b/gcode_process.c index 4e8d422..70b47ac 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -238,7 +238,11 @@ void process_gcode_command() { default: sersendf_P(PSTR("E: Bad G-code %d"), next_target.G); // newline is sent from gcode_parse after we return + return; } + #ifdef DEBUG + print_queue(); + #endif } else if (next_target.seen_M) { switch (next_target.M) {