diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-10-03 19:28:20 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-10-03 22:03:52 -0400 |
commit | ce9523fb90fa537fd9a5eebd77852f6ac4c459de (patch) | |
tree | ee122d305cde6ffc0107eb275e512292c0e5fa95 /klippy/gcode.py | |
parent | 06420b0ddf631aea1af72e3410363f8eec53a165 (diff) | |
download | kutter-ce9523fb90fa537fd9a5eebd77852f6ac4c459de.tar.gz kutter-ce9523fb90fa537fd9a5eebd77852f6ac4c459de.tar.xz kutter-ce9523fb90fa537fd9a5eebd77852f6ac4c459de.zip |
gcode: Report the raw MCU position from the M114 command
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 9d58e7af..a267c85d 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -403,11 +403,11 @@ class GCodeParser: if self.toolhead is None: self.cmd_default(params) return - kinpos = self.toolhead.get_position() - self.respond("X:%.3f Y:%.3f Z:%.3f E:%.3f Count X:%.3f Y:%.3f Z:%.3f" % ( + raw_pos = self.toolhead.query_endstops("get_mcu_position") + self.respond("X:%.3f Y:%.3f Z:%.3f E:%.3f Count %s" % ( self.last_position[0], self.last_position[1], self.last_position[2], self.last_position[3], - kinpos[0], kinpos[1], kinpos[2])) + " ".join(["%s:%d" % (n.upper(), p) for n, p in raw_pos]))) cmd_M115_when_not_ready = True def cmd_M115(self, params): # Get Firmware Version and Capabilities |