Add QC docu, Fix display update

This commit is contained in:
Konstantin Lampalzer 2021-10-14 15:17:35 +02:00
parent d81eb73b46
commit 42952eb9e1
2 changed files with 72 additions and 3 deletions

View file

@ -60,10 +60,8 @@ def write_ip_to_screen():
try:
ip = str(get_ip())
print(f"writing {ip} to display")
Logging.get_logger().info(f"writing {ip} to display")
Display.write(1, "Current IP:")
Display.write(2, ip)
Display.write(3, datetime.datetime.now().strftime("%b %d %H:%M:%S"))
Display.write(1, datetime.datetime.now().strftime("%b %d %H:%M:%S"))
time.sleep(5)
except Exception as e:
print(f"Exception in write ip thread: {e}")