From 0791c694995ef2d8f559e2e0c072e34b46aaeaaa Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 22 Jun 2018 11:44:25 -0400 Subject: stepper: Replace PrinterHomingStepper with PrinterRail Update the code to use the term "rail" when dealing with a motor controlled "axis". A rail has a series of steppers and endstops that control that motor controlled "axis". Signed-off-by: Kevin O'Connor --- klippy/extras/z_tilt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'klippy/extras/z_tilt.py') diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py index 9fad2cd1..df0a363e 100644 --- a/klippy/extras/z_tilt.py +++ b/klippy/extras/z_tilt.py @@ -32,8 +32,7 @@ class ZTilt: def handle_connect(self): kin = self.printer.lookup_object('toolhead').get_kinematics() try: - z_stepper = kin.get_steppers('Z')[0] - z_steppers = [z_stepper] + z_stepper.extras + z_steppers = kin.get_rails('Z')[0].get_steppers() except: logging.exception("z_tilt stepper lookup") raise self.printer.config_error( -- cgit v1.2.3-70-g09d2