aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-16 10:16:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-16 10:16:16 -0400
commitca505bf4ac380bbc2430493ec33779777e82d3da (patch)
tree46f78c89d1d763e109006ef8629e567f109547b0 /klippy/gcode.py
parent89835940f70ff4b9f19a77d14fdaeefa86d777db (diff)
downloadkutter-ca505bf4ac380bbc2430493ec33779777e82d3da.tar.gz
kutter-ca505bf4ac380bbc2430493ec33779777e82d3da.tar.xz
kutter-ca505bf4ac380bbc2430493ec33779777e82d3da.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py5
1 files changed, 1 insertions, 4 deletions
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(