Some data was written to display continuously when no RDS

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-08 18:18:02 +02:00
parent ec674a81e9
commit 46a41e239e
3 changed files with 14 additions and 8 deletions

View File

@@ -57,6 +57,7 @@ bool beepresetstop;
bool BWreset; bool BWreset;
bool change2; bool change2;
bool compressedold; bool compressedold;
bool clearrds;
bool direction; bool direction;
bool dropout; bool dropout;
bool dynamicPTYold; bool dynamicPTYold;

View File

@@ -586,17 +586,21 @@ void readRds() {
if (!screenmute) { if (!screenmute) {
if (!afscreen) { if (!afscreen) {
if (!RDSstatus) { if (!RDSstatus) {
if (advancedRDS) tftPrint(0, PIold, 275, 75, SecondaryColor, SecondaryColorSmooth, 28); else tftPrint(0, PIold, 275, 187, SecondaryColor, SecondaryColorSmooth, 28); if (clearrds) {
if (advancedRDS) tftPrint(-1, PSold, 38, 75, SecondaryColor, SecondaryColorSmooth, 28); else tftPrint(-1, PSold, 38, 187, SecondaryColor, SecondaryColorSmooth, 28); if (advancedRDS) tftPrint(0, PIold, 275, 75, SecondaryColor, SecondaryColorSmooth, 28); else tftPrint(0, PIold, 275, 187, SecondaryColor, SecondaryColorSmooth, 28);
if (advancedRDS) tftPrint(-1, PTYold, 38, 109, SecondaryColor, SecondaryColorSmooth, 16); else tftPrint(-1, PTYold, 38, 163, SecondaryColor, SecondaryColorSmooth, 16); if (advancedRDS) tftPrint(-1, PSold, 38, 75, SecondaryColor, SecondaryColorSmooth, 28); else tftPrint(-1, PSold, 38, 187, SecondaryColor, SecondaryColorSmooth, 28);
if (advancedRDS) { if (advancedRDS) tftPrint(-1, PTYold, 38, 109, SecondaryColor, SecondaryColorSmooth, 16); else tftPrint(-1, PTYold, 38, 163, SecondaryColor, SecondaryColorSmooth, 16);
tft.fillCircle(86, 41, 5, SignificantColor); if (advancedRDS) {
tft.fillCircle(124, 41, 5, SignificantColor); tft.fillCircle(86, 41, 5, SignificantColor);
tft.fillCircle(162, 41, 5, SignificantColor); tft.fillCircle(124, 41, 5, SignificantColor);
tft.fillCircle(200, 41, 5, SignificantColor); tft.fillCircle(162, 41, 5, SignificantColor);
tft.fillCircle(200, 41, 5, SignificantColor);
}
clearrds = false;
} }
if (radio.rds.correctPI != 0) dropout = true; if (radio.rds.correctPI != 0) dropout = true;
} else { } else {
clearrds = true;
if (dropout == true) { if (dropout == true) {
if (advancedRDS) tftPrint(0, PIold, 275, 75, PrimaryColor, PrimaryColorSmooth, 28); else tftPrint(0, PIold, 275, 187, PrimaryColor, PrimaryColorSmooth, 28); if (advancedRDS) tftPrint(0, PIold, 275, 75, PrimaryColor, PrimaryColorSmooth, 28); else tftPrint(0, PIold, 275, 187, PrimaryColor, PrimaryColorSmooth, 28);
if (advancedRDS) tftPrint(-1, PSold, 38, 75, PrimaryColor, PrimaryColorSmooth, 28); else tftPrint(-1, PSold, 38, 187, PrimaryColor, PrimaryColorSmooth, 28); if (advancedRDS) tftPrint(-1, PSold, 38, 75, PrimaryColor, PrimaryColorSmooth, 28); else tftPrint(-1, PSold, 38, 187, PrimaryColor, PrimaryColorSmooth, 28);

View File

@@ -13,6 +13,7 @@ extern bool afscreen;
extern bool aftest; extern bool aftest;
extern bool artheadold; extern bool artheadold;
extern bool compressedold; extern bool compressedold;
extern bool clearrds;
extern bool dropout; extern bool dropout;
extern bool dynamicPTYold; extern bool dynamicPTYold;
extern bool errorAold; extern bool errorAold;