From fedf90680e2fa83cad0ff350c28f2c3c71b45f1f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 8 Oct 2018 14:23:20 -0400 Subject: homing: Pass printer instead of toolhead object to Homing class Signed-off-by: Kevin O'Connor --- klippy/homing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'klippy/homing.py') 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): -- cgit v1.2.3-70-g09d2