aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/z_tilt.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-22 11:44:25 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-22 14:09:01 -0400
commit0791c694995ef2d8f559e2e0c072e34b46aaeaaa (patch)
treebd89d69067596bd3fc1052cf030616486e90043b /klippy/extras/z_tilt.py
parent93d0526a775c09606779bd237c6e21b1680eeed8 (diff)
downloadkutter-0791c694995ef2d8f559e2e0c072e34b46aaeaaa.tar.gz
kutter-0791c694995ef2d8f559e2e0c072e34b46aaeaaa.tar.xz
kutter-0791c694995ef2d8f559e2e0c072e34b46aaeaaa.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/z_tilt.py')
-rw-r--r--klippy/extras/z_tilt.py3
1 files changed, 1 insertions, 2 deletions
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(