This commit is contained in:
brbjr1
2017-12-04 18:32:23 -06:00
parent 27007821fb
commit d600904b83

View File

@@ -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 + '}'