mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 15:37:31 -06:00
gcode: Position returned by M114 should be relative to last G92
It looks like OctoPrint is expecting the result from M114 to be relative to the last G92 command. Also, introduce GET_POSITION to report the actual location that the printer is at. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ef820d98f6
commit
451f7d5672
3 changed files with 42 additions and 17 deletions
|
@ -123,10 +123,6 @@ def query_endstops(toolhead):
|
|||
out.append((name, mcu_endstop.query_endstop_wait()))
|
||||
return out
|
||||
|
||||
def query_position(toolhead):
|
||||
steppers = toolhead.get_kinematics().get_steppers()
|
||||
return [(s.name.upper(), s.mcu_stepper.get_mcu_position()) for s in steppers]
|
||||
|
||||
class EndstopError(Exception):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue