From efecc9642723bfb0d06c73abebf34ebff95dd071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Sun, 2 Jun 2019 16:33:05 +0300 Subject: [PATCH] output_pin: 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/extras/output_pin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/klippy/extras/output_pin.py b/klippy/extras/output_pin.py index 62e72f99..dbc1fab4 100644 --- a/klippy/extras/output_pin.py +++ b/klippy/extras/output_pin.py @@ -39,6 +39,8 @@ class PrinterOutputPin: self.gcode.register_mux_command("SET_PIN", "PIN", pin_name, self.cmd_SET_PIN, desc=self.cmd_SET_PIN_help) + def get_status(self, eventtime): + return {'value': self.last_value} cmd_SET_PIN_help = "Set the value of an output pin" def cmd_SET_PIN(self, params): value = self.gcode.get_float('VALUE', params,