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 <kevin@koconnor.net>
This commit is contained in:
@@ -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" % (
|
||||
|
||||
Reference in New Issue
Block a user