toolhead: Report the current extruder from the get_status() method

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-11-24 19:02:49 -05:00
parent 982567a69a
commit 282af0220e
3 changed files with 12 additions and 2 deletions

View File

@@ -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):