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
+2 -2
View File
@@ -674,13 +674,13 @@ void menuMainView(event_t event)
lcdDrawText(15 * FW, 0, "BIND", 0);
}
#if defined(RTCLOCK)
else if (view_base != VIEW_CHAN_MONITOR) {
else if (view_base != VIEW_CHAN_MONITOR && rtcIsValid()) {
drawRtcTime(CLOCK_X, CLOCK_Y, LEFT|TIMEBLINK);
}
#endif
#else
#if defined(RTCLOCK)
if (view_base != VIEW_CHAN_MONITOR) {
if (view_base != VIEW_CHAN_MONITOR && rtcIsValid()) {
drawRtcTime(CLOCK_X, CLOCK_Y, LEFT|TIMEBLINK);
}
#endif