extruder: add get_status method

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt 2019-06-02 16:33:47 +03:00 committed by Kevin O'Connor
parent 94f5fb3553
commit 9155886c21
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,12 @@ class PrinterExtruder:
gcode.register_mux_command("SET_PRESSURE_ADVANCE", "EXTRUDER",
self.name, self.cmd_SET_PRESSURE_ADVANCE,
desc=self.cmd_SET_PRESSURE_ADVANCE_help)
def get_status(self, eventtime):
return dict(
self.get_heater().get_status(eventtime),
pressure_advance=self.pressure_advance,
lookahead_time=self.pressure_advance_lookahead_time
)
def get_heater(self):
return self.heater
def set_active(self, print_time, is_active):