Fixed flashing ECC and LIC during tuning on Advanced RDS view
This commit is contained in:
+3
-1
@@ -287,9 +287,11 @@ float batteryVold;
|
||||
IPAddress remoteip;
|
||||
String AIDString;
|
||||
String cryptedpassword;
|
||||
String ECColdtxt;
|
||||
String ECColdString;
|
||||
String ECCString;
|
||||
String eonpsold[20];
|
||||
String LIColdString;
|
||||
String LICString;
|
||||
String pinstringold;
|
||||
String PIold;
|
||||
String PSold;
|
||||
|
||||
+11
-5
@@ -60,10 +60,13 @@ void ShowAdvancedRDS() {
|
||||
|
||||
if (licold != radio.rds.LIC || rdsreset) {
|
||||
if (!screenmute) {
|
||||
if (radio.rds.hasLIC) LICString = (radio.rds.LICtext.length() == 0 ? myLanguage[language][73] : radio.rds.LICtext); else LICString = "N/A";
|
||||
if (LICString != LIColdString) {
|
||||
tftPrint(-1, "N/A", 242, 208, BackgroundColor, BackgroundColor, 16);
|
||||
tftPrint(-1, LIColdString, 242, 208, BackgroundColor, BackgroundColor, 16);
|
||||
if (radio.rds.hasLIC) tftPrint(-1, (radio.rds.LICtext.length() == 0 ? myLanguage[language][73] : radio.rds.LICtext), 242, 208, RDSColor, RDSColorSmooth, 16); else tftPrint(-1, "N/A", 242, 208, RDSColor, RDSColorSmooth, 16);
|
||||
if (radio.rds.LICtext.length() == 0) LIColdString = myLanguage[language][73]; else LIColdString = radio.rds.LICtext;
|
||||
}
|
||||
tftPrint(-1, LICString, 242, 208, RDSColor, RDSColorSmooth, 16);
|
||||
LIColdString = LICString;
|
||||
licold = radio.rds.LIC;
|
||||
}
|
||||
}
|
||||
@@ -287,11 +290,14 @@ void showECC() {
|
||||
if (ECCold != radio.rds.ECC) {
|
||||
if (advancedRDS) {
|
||||
if (!screenmute) {
|
||||
if (radio.rds.hasECC) ECCString = (radio.rds.ECCtext.length() == 0 ? myLanguage[language][73] : radio.rds.ECCtext); else ECCString = "N/A";
|
||||
if (ECCString != ECColdString) {
|
||||
tftPrint(-1, "N/A", 242, 193, BackgroundColor, BackgroundColor, 16);
|
||||
tftPrint(-1, ECColdtxt, 242, 193, BackgroundColor, BackgroundColor, 16);
|
||||
if (radio.rds.hasECC) tftPrint(-1, (radio.rds.ECCtext.length() == 0 ? myLanguage[language][73] : radio.rds.ECCtext), 242, 193, RDSColor, RDSColorSmooth, 16); else tftPrint(-1, "N/A", 242, 193, RDSColor, RDSColorSmooth, 16);
|
||||
tftPrint(-1, ECColdString, 242, 193, BackgroundColor, BackgroundColor, 16);
|
||||
}
|
||||
tftPrint(-1, ECCString, 242, 193, RDSColor, RDSColorSmooth, 16);
|
||||
}
|
||||
if (radio.rds.ECCtext.length() == 0) ECColdtxt = myLanguage[language][73]; else ECColdtxt = radio.rds.ECCtext;
|
||||
ECColdString = ECCString;
|
||||
}
|
||||
|
||||
if (wifi) {
|
||||
|
||||
@@ -90,9 +90,11 @@ extern int xPos5;
|
||||
extern int16_t SAvg3;
|
||||
extern IPAddress remoteip;
|
||||
extern String AIDString;
|
||||
extern String ECColdtxt;
|
||||
extern String ECColdString;
|
||||
extern String ECCString;
|
||||
extern String eonpsold[20];
|
||||
extern String LIColdString;
|
||||
extern String LICString;
|
||||
extern String pinstringold;
|
||||
extern String PIold;
|
||||
extern String PSold;
|
||||
|
||||
Reference in New Issue
Block a user