From cd3b57ff00af5967cbed5d60ff047a1255cd3f9a Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 22 Feb 2020 15:09:07 +0100 Subject: [PATCH] Disable move to center when homing z axis --- Marlin/src/gcode/calibrate/G28.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index a6dff2d75a..83f0e0c7d5 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -122,6 +122,7 @@ /** * Move the Z probe (or just the nozzle) to the safe homing point * (Z is already at the right height) + * Home at current position if CNC Router */ constexpr xy_float_t safe_homing_xy = { Z_SAFE_HOMING_X_POINT, Z_SAFE_HOMING_Y_POINT }; #if HAS_HOME_OFFSET @@ -131,7 +132,9 @@ constexpr xy_float_t okay_homing_xy = safe_homing_xy; #endif - destination.set(okay_homing_xy, current_position.z); + #if DISABLED(IS_CNC_ROUTER) + destination.set(okay_homing_xy, current_position.z); + #endif TERN_(HOMING_Z_WITH_PROBE, destination -= probe.offset_xy);