diff options
author | Jason S. McMullan <jason.mcmullan@gmail.com> | 2019-09-28 19:27:17 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-10-03 18:05:21 -0400 |
commit | 7605244fa09abecac946e74caf23f152f43020db (patch) | |
tree | 9d61b724062df8010b69eebe6e10151e80c3f792 | |
parent | 004edb961316682cfdb57a7c6166eb06b0d3ca55 (diff) | |
download | kutter-7605244fa09abecac946e74caf23f152f43020db.tar.gz kutter-7605244fa09abecac946e74caf23f152f43020db.tar.xz kutter-7605244fa09abecac946e74caf23f152f43020db.zip |
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 <jason.mcmullan@gmail.com>
-rw-r--r-- | klippy/extras/safe_z_home.py | 6 |
1 files 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 |