mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-08 06:24:03 -06:00
toolhead: Report the current extruder from the get_status() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
982567a69a
commit
282af0220e
3 changed files with 12 additions and 2 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue