RDS error indicators are now always written, to prevent wrong values

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-24 15:31:13 +02:00
parent 4ed46a3048
commit abfa6b89f7
5 changed files with 4 additions and 35 deletions
-4
View File
@@ -61,10 +61,6 @@ bool direction;
bool dropout; bool dropout;
bool dynamicPTYold; bool dynamicPTYold;
bool edgebeep; bool edgebeep;
bool errorAold;
bool errorBold;
bool errorCold;
bool errorDold;
bool externaltune; bool externaltune;
bool fullsearchrds; bool fullsearchrds;
bool hasafold; bool hasafold;
-4
View File
@@ -699,10 +699,6 @@ void BuildAdvancedRDS() {
TAold = false; TAold = false;
TPold = false; TPold = false;
hastmcold = false; hastmcold = false;
errorAold = true;
errorBold = true;
errorCold = true;
errorDold = true;
dynamicPTYold = false; dynamicPTYold = false;
artheadold = false; artheadold = false;
compressedold = false; compressedold = false;
-4
View File
@@ -37,10 +37,6 @@ extern bool change;
extern bool compressedold; extern bool compressedold;
extern bool dynamicPTYold; extern bool dynamicPTYold;
extern bool edgebeep; extern bool edgebeep;
extern bool errorAold;
extern bool errorBold;
extern bool errorCold;
extern bool errorDold;
extern bool hasafold; extern bool hasafold;
extern bool haseonold; extern bool haseonold;
extern bool hasrtplusold; extern bool hasrtplusold;
-15
View File
@@ -4,25 +4,10 @@
#include <TimeLib.h> #include <TimeLib.h>
void ShowAdvancedRDS() { void ShowAdvancedRDS() {
if (radio.rds.rdsAerror != errorAold || rdsreset) {
if (radio.rds.rdsAerror) tft.fillCircle(86, 41, 5, SignificantColor); else tft.fillCircle(86, 41, 5, InsignificantColor); if (radio.rds.rdsAerror) tft.fillCircle(86, 41, 5, SignificantColor); else tft.fillCircle(86, 41, 5, InsignificantColor);
errorAold = radio.rds.rdsAerror;
}
if (radio.rds.rdsBerror != errorBold || rdsreset) {
if (radio.rds.rdsBerror) tft.fillCircle(124, 41, 5, SignificantColor); else tft.fillCircle(124, 41, 5, InsignificantColor); if (radio.rds.rdsBerror) tft.fillCircle(124, 41, 5, SignificantColor); else tft.fillCircle(124, 41, 5, InsignificantColor);
errorBold = radio.rds.rdsBerror;
}
if (radio.rds.rdsCerror != errorCold || rdsreset) {
if (radio.rds.rdsCerror) tft.fillCircle(162, 41, 5, SignificantColor); else tft.fillCircle(162, 41, 5, InsignificantColor); if (radio.rds.rdsCerror) tft.fillCircle(162, 41, 5, SignificantColor); else tft.fillCircle(162, 41, 5, InsignificantColor);
errorCold = radio.rds.rdsCerror;
}
if (radio.rds.rdsDerror != errorDold || rdsreset) {
if (radio.rds.rdsDerror) tft.fillCircle(200, 41, 5, SignificantColor); else tft.fillCircle(200, 41, 5, InsignificantColor); if (radio.rds.rdsDerror) tft.fillCircle(200, 41, 5, SignificantColor); else tft.fillCircle(200, 41, 5, InsignificantColor);
errorDold = radio.rds.rdsDerror;
}
if (radio.rds.hasDynamicPTY != dynamicPTYold) { if (radio.rds.hasDynamicPTY != dynamicPTYold) {
if (radio.rds.hasDynamicPTY) tft.fillCircle(310, 137, 5, InsignificantColor); else tft.fillCircle(310, 137, 5, SignificantColor); if (radio.rds.hasDynamicPTY) tft.fillCircle(310, 137, 5, InsignificantColor); else tft.fillCircle(310, 137, 5, SignificantColor);
-4
View File
@@ -17,10 +17,6 @@ extern bool compressedold;
extern bool clearrds; extern bool clearrds;
extern bool dropout; extern bool dropout;
extern bool dynamicPTYold; extern bool dynamicPTYold;
extern bool errorAold;
extern bool errorBold;
extern bool errorCold;
extern bool errorDold;
extern bool fullsearchrds; extern bool fullsearchrds;
extern bool hasafold; extern bool hasafold;
extern bool haseonold; extern bool haseonold;