This commit is contained in:
brbjr1
2017-12-04 18:40:38 -06:00
parent 5b36f68ffd
commit 56cdb302fe

View File

@@ -107,7 +107,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
val = GPIO.input(pin) if not rpi_output['activeLow'] else (not GPIO.input(pin))
if getOutputStatusresult:
getOutputStatusresult = getOutputStatusresult + ', '
getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '": ' + str(val)
getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '": ' + str(val).lower()
return '{' + getOutputStatusresult + '}'