From ca505bf4ac380bbc2430493ec33779777e82d3da Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 16 Jul 2018 10:16:16 -0400 Subject: kinematics: Convert get_rails() method to get_steppers() All callers of get_rails() actually just want the steppers, so return them directly. Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index 47a8b2d0..8fa6813c 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -602,10 +602,7 @@ class GCodeParser: self.cmd_default(params) return kin = self.toolhead.get_kinematics() - steppers = [] - rails = kin.get_rails() - for rail in rails: - steppers += rail.get_steppers() + steppers = kin.get_steppers() mcu_pos = " ".join(["%s:%d" % (s.get_name(), s.get_mcu_position()) for s in steppers]) stepper_pos = " ".join( -- cgit v1.2.3-70-g09d2