diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 11:44:25 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 14:09:01 -0400 |
commit | 0791c694995ef2d8f559e2e0c072e34b46aaeaaa (patch) | |
tree | bd89d69067596bd3fc1052cf030616486e90043b /klippy/extras/z_tilt.py | |
parent | 93d0526a775c09606779bd237c6e21b1680eeed8 (diff) | |
download | kutter-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.py | 3 |
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( |