aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/homing.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/homing.py')
-rw-r--r--klippy/homing.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/homing.py b/klippy/homing.py
index 901af03d..f40994a0 100644
--- a/klippy/homing.py
+++ b/klippy/homing.py
@@ -10,8 +10,9 @@ ENDSTOP_SAMPLE_TIME = .000015
ENDSTOP_SAMPLE_COUNT = 4
class Homing:
- def __init__(self, toolhead):
- self.toolhead = toolhead
+ def __init__(self, printer):
+ self.printer = printer
+ self.toolhead = printer.lookup_object('toolhead')
self.changed_axes = []
self.verify_retract = True
def set_no_verify_retract(self):