From 18d47056f5b908730e63e6109e2383e593cfca47 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Sun, 20 Feb 2011 10:59:28 +1100 Subject: [PATCH] print queue with every G command if debug is enabled --- gcode_process.c | 4 ++++ 1 file changed, 4 insertions(+) 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) {