From a450a654a0b184e007f1e6bb412397f15ccf59cc Mon Sep 17 00:00:00 2001 From: jpmeijers Date: Sun, 5 Mar 2017 01:04:25 +0100 Subject: [PATCH] Remove check for empty string, as unset variable is None. --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 3e5dc64..e6da57f 100755 --- a/run.py +++ b/run.py @@ -249,7 +249,7 @@ while True: # Reset the gateway board - this only works for the Raspberry Pi. GPIO.setmode(GPIO.BOARD) # hardware pin numbers, just like gpio -1 - if (os.environ.get("GW_RESET_PIN")!="" and os.environ.get("GW_RESET_PIN")!=None): + 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"))