output_pin: add get_status method

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt authored and Kevin O'Connor committed 2019-06-04 11:44:35 -04:00
1 parent e519ab2031
commit efecc96427
1 file changed
+2
+2
View File
@@ -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,