From 6e88320d625ae80e4b4b87c75ba5540b9f4da146 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 28 May 2019 17:40:19 -0400 Subject: 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 --- klippy/toolhead.py | 1 + 1 file changed, 1 insertion(+) (limited to 'klippy/toolhead.py') diff --git a/klippy/toolhead.py b/klippy/toolhead.py index b7413fb1..713b0009 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -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() -- cgit v1.2.3-70-g09d2