print queue with every G command if debug is enabled

This commit is contained in:
Michael Moon 2011-02-20 10:59:28 +11:00
parent da9bfc9f6f
commit 18d47056f5
1 changed files with 4 additions and 0 deletions

View File

@ -238,7 +238,11 @@ void process_gcode_command() {
default: default:
sersendf_P(PSTR("E: Bad G-code %d"), next_target.G); sersendf_P(PSTR("E: Bad G-code %d"), next_target.G);
// newline is sent from gcode_parse after we return // newline is sent from gcode_parse after we return
return;
} }
#ifdef DEBUG
print_queue();
#endif
} }
else if (next_target.seen_M) { else if (next_target.seen_M) {
switch (next_target.M) { switch (next_target.M) {