From 9155886c21dce66d23347039b760d34e87e400a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Sun, 2 Jun 2019 16:33:47 +0300 Subject: [PATCH] extruder: add get_status method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janar Sööt --- klippy/kinematics/extruder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/klippy/kinematics/extruder.py b/klippy/kinematics/extruder.py index de6668d4..14540d74 100644 --- a/klippy/kinematics/extruder.py +++ b/klippy/kinematics/extruder.py @@ -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):