Commit e6f5c6b5 authored by Nocturnal42's avatar Nocturnal42

Disabled GPIO warnings when DEBUG not enabled.

parent 294c3bfc
......@@ -35,7 +35,7 @@ def mainUpload(stdscr):
LCDENABLED = 1
DEBUG = 1
LOGGER = 1
if LCDENABLED:
lcd = Adafruit_CharLCDPlate.Adafruit_CharLCDPlate(busnum=bus)
lcd.clear()
......@@ -52,6 +52,8 @@ def mainUpload(stdscr):
DHTPin = 4
if not DEBUG:
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(22,GPIO.OUT)
GPIO.setup(21,GPIO.OUT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment