mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-11 16:57:55 -06:00
gcode: "gcode_position" and toolhead "position" as get_status() named tuple
Add "gcode_position" named tuple to gcode.get_status(). Add a "position" named tuple to toolhead.get_status(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4ccc218b06
commit
6e88320d62
3 changed files with 6 additions and 2 deletions
|
@ -417,6 +417,7 @@ class ToolHead:
|
|||
status = "Ready"
|
||||
return { 'status': status, 'print_time': print_time,
|
||||
'estimated_print_time': estimated_print_time,
|
||||
'position': homing.Coord(*self.commanded_pos),
|
||||
'printing_time': print_time - last_print_start_time }
|
||||
def _handle_request_restart(self, print_time):
|
||||
self.motor_off()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue