Fix while true in IPService Lock

This commit is contained in:
Your Name 2022-02-13 17:50:06 +00:00
parent 01cb854f50
commit 0e1b767f26

View file

@ -69,7 +69,8 @@ def write_ip_to_screen():
Display.write(4, f"IP: {ip}") Display.write(4, f"IP: {ip}")
Display.write(1, datetime.datetime.now().strftime("%b %d %H:%M:%S")) Display.write(1, datetime.datetime.now().strftime("%b %d %H:%M:%S"))
Lock.unlock() Lock.unlock()
time.sleep(10)
time.sleep(10)
except Exception as e: except Exception as e:
print(f"Exception in write ip thread: {e}") print(f"Exception in write ip thread: {e}")
time.sleep(5) time.sleep(5)