From 36832739369ab2f66beb1bad732523b5c3687ff7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Nov 2019 19:16:21 -0500 Subject: toolhead: Report which axes are homed via get_status() Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'klippy/toolhead.py') diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 55f1bb36..51d39148 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -482,11 +482,13 @@ class ToolHead: status = "Printing" else: status = "Ready" - return { 'status': status, 'print_time': print_time, - 'estimated_print_time': estimated_print_time, - 'extruder': self.extruder.get_name(), - 'position': homing.Coord(*self.commanded_pos), - 'printing_time': print_time - last_print_start_time } + res = dict(self.kin.get_status(eventtime)) + res.update({ 'status': status, 'print_time': print_time, + 'estimated_print_time': estimated_print_time, + 'extruder': self.extruder.get_name(), + 'position': homing.Coord(*self.commanded_pos), + 'printing_time': print_time - last_print_start_time }) + return res def _handle_shutdown(self): self.can_pause = False self.move_queue.reset() -- cgit v1.2.3-70-g09d2