just record the temp every second

pull/26/head
Andrew de Quincey 2021-05-01 14:22:47 +01:00
rodzic 4e7dc16506
commit cdca23060d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -43,7 +43,7 @@ def recordprofile(csvfile, targettemp):
# * wait for it to decay back to the target again.
# * quit
#
# We record the temperature every config.sensor_time_wait
# We record the temperature every second
try:
stage = 'heating'
if not config.simulate:
@ -68,7 +68,7 @@ def recordprofile(csvfile, targettemp):
sys.stdout.write(f"\r{stage} {temp:.2f}/{targettemp} ")
sys.stdout.flush()
time.sleep(config.sensor_time_wait)
time.sleep(1)
f.close()