t9
This commit is contained in:
@@ -106,10 +106,9 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
|
||||
pin = self.toInt(rpi_output['gpioPin'])
|
||||
if rpi_output['outputType']=='regular':
|
||||
val = GPIO.input(pin) if not rpi_output['activeLow'] else (not GPIO.input(pin))
|
||||
if (not getOutputStatusresult)
|
||||
getOutputStatusresult = getOutputStatusresult + ', '
|
||||
getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '":' + str(val)
|
||||
|
||||
if not getOutputStatusresult:
|
||||
getOutputStatusresult = getOutputStatusresult + ', '
|
||||
getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '":' + str(val)
|
||||
return '{' + getOutputStatusresult + '}'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user