From 8ed0f7c5c37a3e2a3c38d19b19bbd6846453a6df Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 13 Jan 2020 21:39:55 -0500 Subject: kinematics: Remove support for identifying Z steppers The caller can now determine which steppers are connected to cartesian Z movement via the new stepper.is_active_axis() method. It is therefore no longer necessary for the kinematic code to identify these steppers. Signed-off-by: Kevin O'Connor --- klippy/extras/z_tilt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/z_tilt.py') diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py index e6680a75..9784372e 100644 --- a/klippy/extras/z_tilt.py +++ b/klippy/extras/z_tilt.py @@ -16,7 +16,7 @@ class ZAdjustHelper: self.handle_connect) def handle_connect(self): kin = self.printer.lookup_object('toolhead').get_kinematics() - z_steppers = kin.get_steppers('Z') + z_steppers = [s for s in kin.get_steppers() if s.is_active_axis('z')] if len(z_steppers) != self.z_count: raise self.printer.config_error( "%s z_positions needs exactly %d items" % ( -- cgit v1.2.3-70-g09d2