GPIO confusion fixed
This commit is contained in:
parent
0fd66725ce
commit
30b450c9d3
4
oven.py
4
oven.py
@ -103,11 +103,11 @@ class Oven (threading.Thread):
|
||||
if value:
|
||||
self.air = 1.0
|
||||
if gpio_available:
|
||||
GPIO.output(GPIO_COOL, GPIO.LOW)
|
||||
GPIO.output(GPIO_AIR, GPIO.LOW)
|
||||
else:
|
||||
self.air = 0.0
|
||||
if gpio_available:
|
||||
GPIO.output(GPIO_COOL, GPIO.HIGH)
|
||||
GPIO.output(GPIO_AIR, GPIO.HIGH)
|
||||
|
||||
def get_state(self):
|
||||
state = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user