remove unnecessary heat() tuning parameter

pull/34/head
Andrew de Quincey 2021-07-03 17:13:14 +01:00
rodzic 1e2c73f810
commit ac283ebe79
2 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ def recordprofile(csvfile, targettemp):
try:
stage = 'heating'
if not config.simulate:
oven.output.heat(1, tuning=True)
oven.output.heat(0)
while True:
temp = oven.board.temp_sensor.temperature + \
@ -73,7 +73,7 @@ def recordprofile(csvfile, targettemp):
finally:
# ensure we always shut the oven down!
if not config.simulate:
oven.output.heat(0)
oven.output.cool(0)
def line(a, b, x):

Wyświetl plik

@ -27,10 +27,8 @@ class Output(object):
log.warning(msg)
self.active = False
def heat(self,sleepfor, tuning=False):
def heat(self,sleepfor):
self.GPIO.output(config.gpio_heat, self.GPIO.HIGH)
if tuning:
return
time.sleep(sleepfor)
def cool(self,sleepfor):