From fe0dc5408bd8bfe3a17e18c2ffc3b097e3b075db Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 6 Mar 2011 23:24:08 +0100 Subject: [PATCH] gcode_process.c, G92: also reset next_target. This costs a whopping 88 bytes. --- gcode_process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index d4146ec..549fe50 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -218,9 +218,9 @@ void process_gcode_command() { // there's no point in setting E, as E is always relative if (axisSelected == 0) { - startpoint.X = current_position.X = - startpoint.Y = current_position.Y = - startpoint.Z = current_position.Z = 0; + startpoint.X = current_position.X = next_target.target.X = + startpoint.Y = current_position.Y = next_target.target.Y = + startpoint.Z = current_position.Z = next_target.target.Z = 0; } break;