aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-24 19:02:49 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-24 20:21:13 -0500
commit282af0220e2622fbba304f66f001f442b9f3ca8d (patch)
treebea8ee743fb3a848bf57796d48f3255e9e5ca525 /klippy/toolhead.py
parent982567a69a8b3a03306deb5bbf0d03d36b998737 (diff)
downloadkutter-282af0220e2622fbba304f66f001f442b9f3ca8d.tar.gz
kutter-282af0220e2622fbba304f66f001f442b9f3ca8d.tar.xz
kutter-282af0220e2622fbba304f66f001f442b9f3ca8d.zip
toolhead: Report the current extruder from the get_status() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index 7f1731f9..55f1bb36 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -484,6 +484,7 @@ class ToolHead:
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 }
def _handle_shutdown(self):