From ad7f7f0e9694b0b471cd0625c92f88e8c7da785c Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Thu, 7 Apr 2011 03:15:47 +0200 Subject: [PATCH] Don't set all axis to home on G92 E0 --- gcode_process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcode_process.c b/gcode_process.c index 799b970..5edee49 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -230,7 +230,10 @@ void process_gcode_command() { startpoint.Z = current_position.Z = next_target.target.Z; axisSelected = 1; } - // there's no point in setting E, as E is always relative + if (next_target.seen_E) { + // there's no point in setting E, as E is always relative + axisSelected = 1; + } if (axisSelected == 0) { startpoint.X = current_position.X = next_target.target.X =