aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/homing.py
diff options
context:
space:
mode:
authorcruwaller <cruwaller@gmail.com>2018-03-06 08:59:13 +0200
committerKevin O'Connor <kevin@koconnor.net>2018-03-06 13:45:48 -0500
commit923954772f5ee08d63dd5b0d4a22719e81adfea3 (patch)
treed41141eb144dc2723f5a4590aa98ceafe3c3a878 /klippy/homing.py
parent5a168634655d08b1f3042992bd4ccf131bfb7efe (diff)
downloadkutter-923954772f5ee08d63dd5b0d4a22719e81adfea3.tar.gz
kutter-923954772f5ee08d63dd5b0d4a22719e81adfea3.tar.xz
kutter-923954772f5ee08d63dd5b0d4a22719e81adfea3.zip
homing: allow to disable homing retract
Homing retract can be disabled by setting homing_retract_dist to 0. Signed-off-by: Petri Honkala <cruwaller@gmail.com>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r--klippy/homing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/homing.py b/klippy/homing.py
index a6725c9a..6bd11304 100644
--- a/klippy/homing.py
+++ b/klippy/homing.py
@@ -77,6 +77,8 @@ class Homing:
if error is not None:
raise EndstopError(error)
def home(self, forcepos, movepos, endstops, speed, second_home=False):
+ if second_home and forcepos == movepos:
+ return
# Alter kinematics class to think printer is at forcepos
homing_axes = [axis for axis in range(3) if forcepos[axis] is not None]
self.toolhead.set_position(