feat(bw128): display RSSI/RQly on 4th line of telemetry screen when not used (#6936)

This commit is contained in:
Janek
2026-05-05 15:08:06 +10:00
committed by GitHub
parent 97bd7f22b0
commit 0b4412d582
3 changed files with 16 additions and 9 deletions
+5 -4
View File
@@ -32,10 +32,11 @@ void displayRssiLine()
{
if (TELEMETRY_STREAMING()) {
lcdDrawSolidHorizontalLine(0, 55, 128, 0); // separator
uint8_t rssi;
rssi = min((uint8_t)99, TELEMETRY_RSSI());
rxStatStruct *rxStat = getRxStatLabels();
uint8_t rssi = min(rxStat->max, TELEMETRY_RSSI());
lcdDrawNumber(LCD_W/2 -2, STATUS_BAR_Y, rssi, LEADING0 | RIGHT | SMLSIZE, 2);
lcdDrawText(lcdLastLeftPos,STATUS_BAR_Y, "RSSI : ", RIGHT | SMLSIZE);
lcdDrawText(lcdLastLeftPos, STATUS_BAR_Y, ": ", RIGHT | SMLSIZE);
lcdDrawText(lcdLastLeftPos, STATUS_BAR_Y, rxStat->label, RIGHT | SMLSIZE);
lcdDrawRect(65, 57, 38, 7);
uint8_t v = 4*rssi/11;
lcdDrawFilledRect(66+36-v, 58, v, 5, (rssi < g_model.rfAlarms.warning) ? DOTTED : SOLID);
@@ -108,7 +109,7 @@ bool displayNumbersTelemetryScreen(TelemetryScreenData & screen)
fields_count++;
}
if (i==3) {
if (!TELEMETRY_STREAMING()) {
if (!TELEMETRY_STREAMING() || (screen.lines[i].sources[0] == 0 && screen.lines[i].sources[1] == 0)) {
displayRssiLine();
return fields_count;
}