From ce2a7afa04c1e1ee4993ff39600a97ce813f0d68 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Sat, 8 Jul 2023 19:42:19 +0200 Subject: [PATCH] Fixed bug in RDS block display --- TEF6686_ESP32.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 0b12173..625e4f4 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -2919,8 +2919,8 @@ void ShowAdvancedRDS() { } if (rdsblockold != radio.rdsblock) { - tft.fillCircle((6 * rdsblockold) + 6, 136, 2, TFT_RED); - tft.fillCircle((6 * radio.rdsblock) + 6, 136, 2, TFT_GREEN); + if (rdsblockold < 33) tft.fillCircle((6 * rdsblockold) + 10, 136, 2, TFT_RED); + if (radio.rdsblock < 33) tft.fillCircle((6 * radio.rdsblock) + 10, 136, 2, TFT_GREEN); rdsblockold = radio.rdsblock; } } @@ -3357,7 +3357,7 @@ void BuildAdvancedRDS() { tft.fillCircle(310, 170, 5, TFT_RED); tft.fillCircle(310, 185, 5, TFT_RED); - for (int i; i < 33; i++) tft.fillCircle((6 * i) + 6, 136, 2, GreyoutColor); + for (int i; i < 33; i++) tft.fillCircle((6 * i) + 10, 136, 2, GreyoutColor); tft.setTextColor(ActiveColor); tft.setFreeFont(FONT14);