From 8767ae4606ec673d7ba5c338c7c293c0e5985547 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sat, 7 Nov 2020 12:59:00 +0100 Subject: [PATCH] Always display output channel name on mix screen (#8076) * Always display output name on mix screen even if no line is defined * Fine tune --- radio/src/gui/common/stdlcd/model_mixes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/radio/src/gui/common/stdlcd/model_mixes.cpp b/radio/src/gui/common/stdlcd/model_mixes.cpp index d5324e509..103083486 100644 --- a/radio/src/gui/common/stdlcd/model_mixes.cpp +++ b/radio/src/gui/common/stdlcd/model_mixes.cpp @@ -479,6 +479,13 @@ void menuModelMixAll(event_t event) s_currCh = ch; if (!s_copyMode) { attr = INVERS; + displayHeaderChannelName(ch - 1); +#if LCD_W >= 212 + if (g_model.limitData[ch - 1].name[0] != '\0') { + coord_t xPos = MIX_HDR_GAUGE_POS_X - FWNUM * 5 - 50; + lcdDrawFilledRect(lcdNextPos, 0, lcdNextPos - xPos, MENU_HEADER_HEIGHT, SOLID, FILL_WHITE | GREY_DEFAULT); + } +#endif } } if (cur-menuVerticalOffset >= 0 && cur-menuVerticalOffset < NUM_BODY_LINES) {