diff options
author | Eric Callahan <Arksine@users.noreply.github.com> | 2018-07-03 12:22:55 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-07-03 12:22:55 -0400 |
commit | b91b0f24db7e715190e67b36855d2934be02ff4a (patch) | |
tree | ecd654ed621c58190cdcbbe61742562eab63c221 | |
parent | 0dbfa915de5495662102d17c7a11cea219354b91 (diff) | |
download | kutter-b91b0f24db7e715190e67b36855d2934be02ff4a.tar.gz kutter-b91b0f24db7e715190e67b36855d2934be02ff4a.tar.xz kutter-b91b0f24db7e715190e67b36855d2934be02ff4a.zip |
gcode: fix for GET_POSITION (#454)
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r-- | klippy/gcode.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 0ea50751..68e367c0 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -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( |