Skip to content

Commit

Permalink
fix(bw212): timer display on telemetry screen, main view (#5384)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored Aug 6, 2024
1 parent e8aad3b commit 687b28d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions radio/src/gui/212x64/lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ void drawTelemetryTopBar()
else
val = timersStates[0].val;
LcdFlags att = (val < 0 ? BLINK : 0) | TIMEHOUR;
drawTimer(22*FW, 0, val, att, att);
lcdDrawText(22*FW, 0, "T1:", RIGHT);
drawTimer(18*FW, 0, val, att, att);
lcdDrawText(18*FW, 0, "T1:", RIGHT);
}
if (g_model.timers[1].mode) {
TimerData *timer = &g_model.timers[1];
Expand All @@ -561,8 +561,8 @@ void drawTelemetryTopBar()
else
val = timersStates[1].val;
LcdFlags att = (val < 0 ? BLINK : 0) | TIMEHOUR;
drawTimer(31*FW, 0, val, att, att);
lcdDrawText(31*FW, 0, "T2:", RIGHT);
drawTimer(28*FW, 0, val, att, att);
lcdDrawText(28*FW, 0, "T2:", RIGHT);
}
lcdInvertLine(0);
}
Expand Down
2 changes: 1 addition & 1 deletion radio/src/gui/212x64/view_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void displayTimers()
val = (int)timerData.start - (int)timerState.val;
drawTimer(TIMERS_X, y, val, TIMEHOUR|MIDSIZE|LEFT, TIMEHOUR|MIDSIZE|LEFT);
if (timerData.persistent) {
lcdDrawChar(TIMERS_R, y+1, 'P', SMLSIZE);
lcdDrawChar(TIMERS_R, y-7, 'P', SMLSIZE);
}
if (timerState.val < 0) {
if (BLINK_ON_PHASE) {
Expand Down

0 comments on commit 687b28d

Please sign in to comment.