mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 23:17:37 -06:00
gcode: Report the raw MCU position from the M114 command
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
06420b0ddf
commit
ce9523fb90
6 changed files with 16 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue