aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-13 18:43:40 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-13 19:35:26 -0500
commit18b0749163e87602fe47cc6b7627f72cdd1055ad (patch)
tree7baddc29455f121801d12a0ed96a673659ec3733 /klippy
parent9396431c6bcebf36c3e34ed1062d3ec646bf5b9b (diff)
downloadkutter-18b0749163e87602fe47cc6b7627f72cdd1055ad.tar.gz
kutter-18b0749163e87602fe47cc6b7627f72cdd1055ad.tar.xz
kutter-18b0749163e87602fe47cc6b7627f72cdd1055ad.zip
bltouch: No need to call get/set_commanded_position()
Now that the homing code does not call set_commanded_position(), it is no longer necessary to save/restore the position in the bltouch code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/bltouch.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index 79cd1735..f45b966c 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -90,8 +90,6 @@ class BLTouchEndstopWrapper:
return self.next_cmd_time
def verify_state(self, check_start_time, check_end_time, triggered, msg):
# Perform endstop check to verify bltouch reports desired state
- prev_positions = [s.get_commanded_position()
- for s in self.mcu_endstop.get_steppers()]
self.mcu_endstop.home_start(check_start_time, ENDSTOP_SAMPLE_TIME,
ENDSTOP_SAMPLE_COUNT, ENDSTOP_REST_TIME,
triggered=triggered)
@@ -99,8 +97,6 @@ class BLTouchEndstopWrapper:
self.mcu_endstop.home_wait(check_end_time)
except self.mcu_endstop.TimeoutError as e:
raise homing.EndstopError("BLTouch failed to %s" % (msg,))
- for s, pos in zip(self.mcu_endstop.get_steppers(), prev_positions):
- s.set_commanded_position(pos)
def raise_probe(self):
for retry in range(3):
self.sync_mcu_print_time()