Attempt to improve the logic of the display
This commit is contained in:
parent
615a97bcf7
commit
15daabd98f
1 changed files with 3 additions and 3 deletions
|
|
@ -142,10 +142,10 @@ def logger(hostname, csvfile, noprofilestats, pidstats, stdout):
|
|||
# time remaining for the display, calculated for rounded seconds
|
||||
time_rem = msg['totaltime'] - msg['runtime']
|
||||
if time_rem == -1 or kiln_state == 'IDLE':
|
||||
if prev_kiln_state == 'IDLE':
|
||||
seg.text = f"READY....TEMP{temp:4.0f}"
|
||||
else:
|
||||
if prev_kiln_state == 'RUNNING':
|
||||
seg.text = f"DONE....TEMP{temp:4.0f}"
|
||||
else:
|
||||
seg.text = f"READY....TEMP{temp:4.0f}"
|
||||
else:
|
||||
hours = round(time_rem // 3600)
|
||||
minutes = round((time_rem - (hours * 3600)) // 60)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue