Skip to content

Commit

Permalink
feat(128): Swap modelname for timer1 if defined (#3856)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored Jul 28, 2023
1 parent 07e9f23 commit cdaf68e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions radio/src/gui/128x64/lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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);
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 defined(RTCLOCK)
drawRtcTime(17*FW+3, 0, LEFT|TIMEBLINK);
#endif
Expand Down

0 comments on commit cdaf68e

Please sign in to comment.