Update gpiocontrol.py

This commit is contained in:
mrduckspace 2020-03-27 09:34:48 +01:00 committed by GitHub
parent f6523929b2
commit bd3e15ba57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ def onLoad():
global waitTime
GPIOPIN = globalVars.config.getint("gpiocontrol","pin")
waitTime = globalVars.config.getint("gpiocontrol","ontime")
waitTime = globalVars.config.getint("gpiocontrol","triggertime")
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
@ -79,7 +79,7 @@ def run(typ,freq,data):
if configHandler.checkConfig("gpiocontrol"): #read and debug the config (let empty if no config used)
logging.debug(globalVars.config.get("gpiocontrol", "pin"))
logging.debug(globalVars.config.get("gpiocontrol", "ontime"))
logging.debug(globalVars.config.get("gpiocontrol", "triggertime"))
########## User Plugin CODE ##########
if typ == "FMS":