From ab80852aecb06593b27c4173c34fdec78c3e6a31 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 6 Mar 2011 20:15:02 +0100 Subject: [PATCH] With G28 "go home" there's also no point to move E. Saves another 96 bytes binary size. --- gcode_process.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index 36decbc..d4146ec 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -52,12 +52,6 @@ static void zero_z(void) { enqueue(&t); } -static void zero_e(void) { - TARGET t = startpoint; - t.E = 0; - enqueue(&t); -} - static void SpecialMoveE(int32_t e, uint32_t f) { TARGET t = startpoint; t.E = e; @@ -184,16 +178,12 @@ void process_gcode_command() { zero_z(); axisSelected = 1; } - if (next_target.seen_E) { - zero_e(); - axisSelected = 1; - } + // there's no point in moving E, as E is always relative if (!axisSelected) { zero_x(); zero_y(); zero_z(); - zero_e(); } break;