gcode: fix for GET_POSITION (#454)

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2018-07-03 12:22:55 -04:00 committed by KevinOConnor
parent 0dbfa915de
commit b91b0f24db
1 changed files with 4 additions and 1 deletions

View File

@ -609,7 +609,10 @@ class GCodeParser:
self.cmd_default(params)
return
kin = self.toolhead.get_kinematics()
steppers = kin.get_steppers()
steppers = []
rails = kin.get_rails()
for rail in rails:
steppers += rail.get_steppers()
mcu_pos = " ".join(["%s:%d" % (s.get_name(), s.get_mcu_position())
for s in steppers])
stepper_pos = " ".join(