Galactic/Cosmic: fix #556

pull/696/head
Hel Gibbons 2023-02-27 13:28:24 +00:00
rodzic c2b1eb47e5
commit 3e44edf66a
2 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

@ -195,9 +195,6 @@ def redraw_display_if_reqd():
clock = "{:02}:{:02}:{:02}".format(hour, minute, second)
# set the font
graphics.set_font("bitmap8")
# calculate text position so that it is centred
w = graphics.measure_text(clock, 1)
x = int(width / 2 - w / 2 + 1)
@ -208,6 +205,8 @@ def redraw_display_if_reqd():
last_second = second
# set the font
graphics.set_font("bitmap8")
gu.set_brightness(0.5)
sync_time()

Wyświetl plik

@ -195,9 +195,6 @@ def redraw_display_if_reqd():
clock = "{:02}:{:02}:{:02}".format(hour, minute, second)
# set the font
graphics.set_font("bitmap8")
# calculate text position so that it is centred
w = graphics.measure_text(clock, 1)
x = int(width / 2 - w / 2 + 1)
@ -208,6 +205,8 @@ def redraw_display_if_reqd():
last_second = second
# set the font
graphics.set_font("bitmap8")
gu.set_brightness(0.5)
sync_time()