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

@ -93,6 +93,8 @@ class PrinterExtruder:
return dict(self.get_heater().get_status(eventtime),
pressure_advance=self.pressure_advance,
smooth_time=self.pressure_advance_smooth_time)
def get_name(self):
return self.name
def get_heater(self):
return self.heater
def set_active(self, print_time, is_active):
@ -181,6 +183,8 @@ class DummyExtruder:
move.end_pos, "Extrude when no extruder present")
def calc_junction(self, prev_move, move):
return move.max_cruise_v2
def get_name(self):
return ""
def get_heater(self):
raise homing.CommandError("Extruder not configured")