Commit 12b0a2e1 authored by Andreas Pagander's avatar Andreas Pagander

fix list updating under iteration

parent 6d1b0394
......@@ -57,7 +57,7 @@ class clock(threading.Thread):
display_str = split_str[0] + clock_str + split_str[1]
lcd.lcd_display_string(display_str.ljust(rows)[0:rows], G.clock)
if G.update:
for line in G.text:
for line in G.text.keys():
lcd.lcd_display_string(G.text[line].ljust(rows)[0:rows], line)
G.update = False
time.sleep(0.1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment