Fixed CT glitching

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-11-02 00:08:28 +01:00
parent ca40d85bd9
commit ea44570642
2 changed files with 5 additions and 7 deletions
+1 -3
View File
@@ -2190,7 +2190,6 @@ void KeyUp() {
if (band == BAND_FM) DataPrint("M0\nT" + String(frequency * 10)); else if (band == BAND_OIRT) DataPrint("M0\nT" + String(frequency_OIRT * 10)); else DataPrint("M1\nT" + String(frequency_AM));
}
if (!memorystore) {
if (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16);
radio.clearRDS(fullsearchrds);
ShowFreq(0);
store = true;
@@ -2238,7 +2237,6 @@ void KeyDown() {
if (band == BAND_FM) DataPrint("M0\nT" + String(frequency * 10)); else if (band == BAND_OIRT) DataPrint("M0\nT" + String(frequency_OIRT * 10)); else DataPrint("M1\nT" + String(frequency_AM));
}
if (!memorystore) {
if (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16);
radio.clearRDS(fullsearchrds);
ShowFreq(0);
store = true;
@@ -2352,12 +2350,12 @@ void ShowFreq(int mode) {
rtplusstringold = "";
eonstringold = "";
afstringold = "";
rds_clockold = "";
rdsreset = true;
licold = 254;
ECCold = 253;
afmethodBold = false;
aid_counterold = 0;
dropout = false;
if (wifi) {
Udp.beginPacket(remoteip, 9030);
+4 -4
View File
@@ -303,9 +303,9 @@ void readRds() {
}
if (radio.rds.hasCT) {
if (advancedRDS) {
tftReplace(1, rds_clockold, rds_clock, 205, 109, SecondaryColor, SecondaryColorSmooth, 16);
tftPrint(1, rds_clockold, 205, 109, SecondaryColor, SecondaryColorSmooth, 16);
} else {
tftReplace(1, rds_clockold, rds_clock, 205, 163, SecondaryColor, SecondaryColorSmooth, 16);
tftPrint(1, rds_clockold, 205, 163, SecondaryColor, SecondaryColorSmooth, 16);
}
}
dropout = true;
@@ -333,9 +333,9 @@ void readRds() {
}
if (radio.rds.hasCT) {
if (advancedRDS) {
tftReplace(1, rds_clockold, rds_clock, 205, 109, PrimaryColor, PrimaryColorSmooth, 16);
tftPrint(1, rds_clockold, 205, 109, PrimaryColor, PrimaryColorSmooth, 16);
} else {
tftReplace(1, rds_clockold, rds_clock, 205, 163, PrimaryColor, PrimaryColorSmooth, 16);
tftPrint(1, rds_clockold, 205, 163, PrimaryColor, PrimaryColorSmooth, 16);
}
}
dropout = false;