diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-10-08 14:23:20 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-10-16 13:09:23 -0400 |
commit | fedf90680e2fa83cad0ff350c28f2c3c71b45f1f (patch) | |
tree | 026c2e82667552bd1e035a492f51ce65a029d173 /klippy/homing.py | |
parent | e7498fa2415259e16938124d733c606c53c4eed8 (diff) | |
download | kutter-fedf90680e2fa83cad0ff350c28f2c3c71b45f1f.tar.gz kutter-fedf90680e2fa83cad0ff350c28f2c3c71b45f1f.tar.xz kutter-fedf90680e2fa83cad0ff350c28f2c3c71b45f1f.zip |
homing: Pass printer instead of toolhead object to Homing class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r-- | klippy/homing.py | 5 |
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): |