mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -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
|
@ -57,7 +57,11 @@ class Homing:
|
|||
def set_homed_position(self, pos):
|
||||
self.toolhead.set_position(self._fill_coord(pos))
|
||||
|
||||
def query_endstops(print_time, steppers):
|
||||
def query_endstops(print_time, query_flags, steppers):
|
||||
if query_flags == "get_mcu_position":
|
||||
# Only the commanded position is requested
|
||||
return [(s.name.upper(), s.mcu_stepper.get_mcu_position())
|
||||
for s in steppers]
|
||||
for s in steppers:
|
||||
s.mcu_endstop.query_endstop(print_time)
|
||||
out = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue