From d665de8269bcf1aca93ca8201a070cd86ffda4bd Mon Sep 17 00:00:00 2001 From: jpmeijers Date: Thu, 9 Mar 2017 17:58:16 +0100 Subject: [PATCH] Used wrong variable name for reset pin. --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 6e7dabd..fd12b2c 100755 --- a/run.py +++ b/run.py @@ -269,7 +269,7 @@ while True: if (os.environ.get("GW_RESET_PIN")!=None): try: pin_number = int(os.environ.get("GW_RESET_PIN")) - print ("[TTN Gateway]: Resetting concentrator on pin "+os.environ.get("GW_RESET")) + print ("[TTN Gateway]: Resetting concentrator on pin "+str(os.environ.get("GW_RESET_PIN"))) GPIO.setup(pin_number, GPIO.OUT, initial=GPIO.LOW) GPIO.output(pin_number, 0) time.sleep(0.1)