mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-13 01:37:55 -06:00
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>
This commit is contained in:
parent
89835940f7
commit
ca505bf4ac
6 changed files with 14 additions and 21 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue