From 3543044c79b3cc8472f64d09f539bf385db5c854 Mon Sep 17 00:00:00 2001 From: philmoz Date: Mon, 3 Jun 2024 13:12:08 +1000 Subject: [PATCH] fix(bw128): telemetry source name overlaps V1 value on logical switch list view (#5109) --- radio/src/gui/128x64/lcd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/128x64/lcd.cpp b/radio/src/gui/128x64/lcd.cpp index 92ba51bf9..21ef551e1 100644 --- a/radio/src/gui/128x64/lcd.cpp +++ b/radio/src/gui/128x64/lcd.cpp @@ -704,7 +704,10 @@ void drawSource(coord_t x, coord_t y, mixsrc_t idx, LcdFlags att) } #endif else { - lcdDrawText(x, y, getSourceString(idx), att); + const char* s = getSourceString(idx); + if (idx >= MIXSRC_FIRST_TELEM && idx <= MIXSRC_LAST_TELEM) + s += strlen(STR_CHAR_TELEMETRY); + lcdDrawText(x, y, s, att); } }