aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/bltouch.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-13 23:34:21 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-21 13:17:45 -0500
commit2843c850198010b1948a578a1b1421ee81be36b7 (patch)
tree48ff734635fe606a94238dd2f07fefa3dc3a3153 /klippy/extras/bltouch.py
parent7c80e8d533728f80400691fcdf9bc3e6118e4ae8 (diff)
downloadkutter-2843c850198010b1948a578a1b1421ee81be36b7.tar.gz
kutter-2843c850198010b1948a578a1b1421ee81be36b7.tar.xz
kutter-2843c850198010b1948a578a1b1421ee81be36b7.zip
toolhead: Rename _full_flush() to flush_step_generation() and use globally
Update code that modifies the low-level kinematics handlers to first call toolhead.flush_step_generation(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/bltouch.py')
-rw-r--r--klippy/extras/bltouch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index f45b966c..f372b1ab 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -144,6 +144,8 @@ class BLTouchEndstopWrapper:
self.send_cmd(None)
self.sync_print_time()
self.mcu_endstop.home_prepare()
+ toolhead = self.printer.lookup_object('toolhead')
+ toolhead.flush_step_generation()
self.start_mcu_pos = [(s, s.get_mcu_position())
for s in self.mcu_endstop.get_steppers()]
def home_finalize(self):