From 7605244fa09abecac946e74caf23f152f43020db Mon Sep 17 00:00:00 2001 From: "Jason S. McMullan" Date: Sat, 28 Sep 2019 19:27:17 -0400 Subject: [PATCH] safe_z_home: Fix issue where 'home_xy_position: 0,0' did not position at 0,0 If '[stepper_x]' and/or '[stepper_y]' have a 'position_min' that is non-zero, and '[safe_z_home] home_xy_position' is '0,0'; then the 'G28' command will _not_ move to '0,0'; but stay at 'position_min' during the Z endstop test. This fix corrects this issue. Signed-off-by: Jason S. McMullan --- klippy/extras/safe_z_home.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/klippy/extras/safe_z_home.py b/klippy/extras/safe_z_home.py index 6f52b3ca..c3c4b165 100644 --- a/klippy/extras/safe_z_home.py +++ b/klippy/extras/safe_z_home.py @@ -70,10 +70,8 @@ class SafeZHoming: pos = toolhead.get_position() prev_x = pos[0] prev_y = pos[1] - if self.home_x_pos: - pos[0] = self.home_x_pos - if self.home_y_pos: - pos[1] = self.home_y_pos + pos[0] = self.home_x_pos + pos[1] = self.home_y_pos toolhead.move(pos, self.speed) self.gcode.reset_last_position() # Home Z