diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-24 19:16:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-24 20:21:13 -0500 |
commit | 36832739369ab2f66beb1bad732523b5c3687ff7 (patch) | |
tree | f98e7c34c8da7c55590e451fff95c83f540c4123 /klippy/toolhead.py | |
parent | 282af0220e2622fbba304f66f001f442b9f3ca8d (diff) | |
download | kutter-36832739369ab2f66beb1bad732523b5c3687ff7.tar.gz kutter-36832739369ab2f66beb1bad732523b5c3687ff7.tar.xz kutter-36832739369ab2f66beb1bad732523b5c3687ff7.zip |
toolhead: Report which axes are homed via get_status()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 12 |
1 files changed, 7 insertions, 5 deletions
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() |