feat(128): Swap modelname for timer1 if defined (#3856)

This commit is contained in:
Peter Feerick
2023-07-28 21:33:37 +10:00
committed by GitHub
parent 07e9f2384e
commit cdaf68e0ed
+6 -5
View File
@@ -627,13 +627,14 @@ void lcdDrawFilledRect(coord_t x, coord_t y, coord_t w, coord_t h, uint8_t pat,
void drawTelemetryTopBar()
{
drawModelName(0, 0, g_model.header.name, g_eeGeneral.currModel, 0);
if (g_model.timers[0].mode) {
uint8_t att = (timersStates[0].val<0 ? BLINK : 0);
drawTimer(0, 0, timersStates[0].val, att, att);
} else {
drawModelName(0, 0, g_model.header.name, g_eeGeneral.currModel, 0);
}
uint8_t att = (IS_TXBATT_WARNING() ? BLINK : 0);
putsVBat(10*FW-1,0,att);
if (g_model.timers[0].mode) {
att = (timersStates[0].val<0 ? BLINK : 0);
drawTimer(13*FW+2, 0, timersStates[0].val, att, att);
}
#if defined(RTCLOCK)
drawRtcTime(17*FW+3, 0, LEFT|TIMEBLINK);
#endif