This commit is contained in:
brbjr1
2017-12-04 18:37:10 -06:00
parent cd4e553b01
commit 5b36f68ffd

View File

@@ -107,8 +107,8 @@ 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)
return flask.jsonify('{' + getOutputStatusresult + '}')
getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '": ' + str(val)
return '{' + getOutputStatusresult + '}'
@octoprint.plugin.BlueprintPlugin.route("/getTest", methods=["GET"])