From 1aba3908d405c5f07ba95a21a86387e26d68f797 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Wed, 15 Nov 2023 13:58:46 +0100 Subject: [PATCH] Fixed messages AF/EON not available in AF/EON screen. --- src/gui.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui.cpp b/src/gui.cpp index 4fd333e..d58c32a 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -322,7 +322,11 @@ void BuildAFScreen() { tft.drawLine(248, 30, 248, 0, FrameColor); tftPrint(-1, "kHz", 203, 4, ActiveColor, ActiveColorSmooth, 28); tftPrint(0, myLanguage[language][93], 160, 222, ActiveColor, ActiveColorSmooth, 16); - if (afpagenr == 1) tftPrint(-1, myLanguage[language][87], 6, 48, PrimaryColor, PrimaryColorSmooth, 16); else if (afpagenr == 2) tftPrint(-1, myLanguage[language][88], 6, 48, PrimaryColor, PrimaryColorSmooth, 16); + if (afpagenr == 1) { + if (!radio.rds.hasAF) tftPrint(-1, myLanguage[language][87], 6, 48, PrimaryColor, PrimaryColorSmooth, 16); + } else if (afpagenr == 2) { + if (!radio.rds.hasEON) tftPrint(-1, myLanguage[language][88], 6, 48, PrimaryColor, PrimaryColorSmooth, 16); + } RDSstatusold = false; ShowFreq(0); Stereostatusold = false; @@ -2491,4 +2495,4 @@ void Infoboxprint(const char* input) { } else { tftPrint(0, input, 155, 78, ActiveColor, ActiveColorSmooth, 28); } -} +} \ No newline at end of file