From 792a84782d53892105f2124c4c6189d1b87e4abd Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Thu, 16 May 2024 16:16:53 +0100 Subject: [PATCH] Schedule NTP sync for midnight and update comment --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 6442cf3..5c6400b 100644 --- a/app.py +++ b/app.py @@ -244,8 +244,9 @@ class App: started = False while (True): gc.collect() + if (time.localtime()[3] == 0): ntptime.settime() changed = not started or self.__changeScreen() - # TODO: make screen not change within given interval, as holding button too long changes it twice + # TODO: make buttons not work until certain delay after release, as holding button too long actions it twice if (not started): started = True # if the screen has changed, redraw the whole screen if (changed):