From ce9523fb90fa537fd9a5eebd77852f6ac4c459de Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 3 Oct 2017 19:28:20 -0400 Subject: gcode: Report the raw MCU position from the M114 command Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'klippy/gcode.py') 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 -- cgit v1.2.3-70-g09d2