From 1ba582f0dc0b9bdfc389d3e06b1ba15a9479d9ca Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Tue, 3 Oct 2023 12:42:26 +0200 Subject: [PATCH] Fix: When in Advanced RDS view or AFEON view iMS and EQ could accedentally be printed --- TEF6686_ESP32.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index ee6c457..cca7718 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -2598,13 +2598,13 @@ void updateBW() { void updateiMS() { if (band < BAND_GAP) { if (iMSset == 0) { - if (!screenmute) { + if (!screenmute && !advancedRDS && !afscreen) { tft.drawRoundRect(248, 56, 32, 20, 5, ActiveColor); tftPrint(0, "iMS", 265, 59, ActiveColor, ActiveColorSmooth, 16); } radio.setiMS(1); } else { - if (!screenmute) { + if (!screenmute && !advancedRDS && !afscreen) { tft.drawRoundRect(248, 56, 32, 20, 5, GreyoutColor); tftPrint(0, "iMS", 265, 59, GreyoutColor, BackgroundColor, 16); } @@ -2616,13 +2616,13 @@ void updateiMS() { void updateEQ() { if (band < BAND_GAP) { if (EQset == 0) { - if (!screenmute) { + if (!screenmute && !advancedRDS && !afscreen) { tft.drawRoundRect(286, 56, 32, 20, 5, ActiveColor); tftPrint(0, "EQ", 303, 59, ActiveColor, ActiveColorSmooth, 16); } radio.setEQ(1); } else { - if (!screenmute) { + if (!screenmute && !advancedRDS && !afscreen) { tft.drawRoundRect(286, 56, 32, 20, 5, GreyoutColor); tftPrint(0, "EQ", 303, 59, GreyoutColor, BackgroundColor, 16); }