gpio fixes
This commit is contained in:
parent
7356fa3b36
commit
1b5232a295
4
oven.py
4
oven.py
@ -17,7 +17,9 @@ try:
|
||||
import RPi.GPIO as GPIO
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(GPIO_HEAT, GPIO.OUT)
|
||||
GPIO.setup(GPIO_HEAT, GPIO.OUT)
|
||||
GPIO.setup(GPIO_COOL, GPIO.OUT)
|
||||
GPIO.setup(GPIO_AIR, GPIO.OUT)
|
||||
GPIO.setwarnings(False)
|
||||
gpio_available = True
|
||||
except ImportError:
|
||||
log.warning("Could not initialize GPIOs, oven operation will only be simulated!")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user