feat(bw): do not show time on main view when RTC not set (#5342)

This commit is contained in:
3djc
2024-07-29 20:13:47 +10:00
committed by GitHub
parent bdfb94ae83
commit 7fb3888b93
4 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ void displayTopBar()
LCD_ICON(BAR_VOLUME_X, BAR_Y, ICON_SPEAKER3);
/* RTC time */
drawRtcTime(BAR_TIME_X, BAR_Y+1, LEFT|TIMEBLINK);
if (rtcIsValid()) drawRtcTime(BAR_TIME_X, BAR_Y+1, LEFT|TIMEBLINK);
/* The background */
lcdDrawFilledRect(BAR_X, BAR_Y, BAR_W, BAR_H, SOLID, FILL_WHITE|GREY(12)|ROUND);