Added RDS refresh on PI change

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-24 15:19:38 +02:00
parent 0b1b4bafb3
commit 4ed46a3048
2 changed files with 2 additions and 0 deletions

View File

@@ -396,6 +396,7 @@ void readRds() {
void showPI() {
if (strcmp(radio.rds.picode, radioIdPrevious)) {
if (!radio.rds.rdsAerror && !radio.rds.rdsBerror && !radio.rds.rdsCerror && !radio.rds.rdsDerror && radio.rds.rdsA != radio.rds.correctPI && PIold.length() > 1) radio.clearRDS(fullsearchrds);
if (!screenmute) {
if (advancedRDS) {
if (region == REGION_EU) tftReplace(0, PIold, radio.rds.picode, 275, 75, PrimaryColor, PrimaryColorSmooth, 28);

View File

@@ -21,6 +21,7 @@ extern bool errorAold;
extern bool errorBold;
extern bool errorCold;
extern bool errorDold;
extern bool fullsearchrds;
extern bool hasafold;
extern bool haseonold;
extern bool hasrtplusold;