From 1cb40082e4b2c83583aa023a63ebd88f6930a318 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 25 Mar 2012 19:47:50 +0200 Subject: [PATCH] gcode_process.c: remove more redundant code. Saves yet another 122 bytes. --- gcode_process.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index 9c0523b..4cf5fe3 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -112,15 +112,6 @@ void process_gcode_command() { next_tool = next_target.T; } -// TODO TODO: really? - // if we didn't see an axis word, set it to startpoint. this fixes incorrect moves after homing - if (next_target.seen_X == 0) - next_target.target.X = startpoint.X; - if (next_target.seen_Y == 0) - next_target.target.Y = startpoint.Y; - if (next_target.seen_Z == 0) - next_target.target.Z = startpoint.Z; - if (next_target.seen_G) { uint8_t axisSelected = 0; switch (next_target.G) {