diff --git a/klippy/extras/output_pin.py b/klippy/extras/output_pin.py index 12b40f2b..62e72f99 100644 --- a/klippy/extras/output_pin.py +++ b/klippy/extras/output_pin.py @@ -41,7 +41,8 @@ class PrinterOutputPin: desc=self.cmd_SET_PIN_help) cmd_SET_PIN_help = "Set the value of an output pin" def cmd_SET_PIN(self, params): - value = self.gcode.get_float('VALUE', params, minval=0., maxval=1.) + value = self.gcode.get_float('VALUE', params, + minval=0., maxval=self.scale) value /= self.scale if value == self.last_value: return