Fixed CT glitching
This commit is contained in:
+1
-3
@@ -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 (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 (!memorystore) {
|
||||||
if (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16);
|
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
ShowFreq(0);
|
ShowFreq(0);
|
||||||
store = true;
|
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 (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 (!memorystore) {
|
||||||
if (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16);
|
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
ShowFreq(0);
|
ShowFreq(0);
|
||||||
store = true;
|
store = true;
|
||||||
@@ -2352,12 +2350,12 @@ void ShowFreq(int mode) {
|
|||||||
rtplusstringold = "";
|
rtplusstringold = "";
|
||||||
eonstringold = "";
|
eonstringold = "";
|
||||||
afstringold = "";
|
afstringold = "";
|
||||||
rds_clockold = "";
|
|
||||||
rdsreset = true;
|
rdsreset = true;
|
||||||
licold = 254;
|
licold = 254;
|
||||||
ECCold = 253;
|
ECCold = 253;
|
||||||
afmethodBold = false;
|
afmethodBold = false;
|
||||||
aid_counterold = 0;
|
aid_counterold = 0;
|
||||||
|
dropout = false;
|
||||||
|
|
||||||
if (wifi) {
|
if (wifi) {
|
||||||
Udp.beginPacket(remoteip, 9030);
|
Udp.beginPacket(remoteip, 9030);
|
||||||
|
|||||||
+4
-4
@@ -303,9 +303,9 @@ void readRds() {
|
|||||||
}
|
}
|
||||||
if (radio.rds.hasCT) {
|
if (radio.rds.hasCT) {
|
||||||
if (advancedRDS) {
|
if (advancedRDS) {
|
||||||
tftReplace(1, rds_clockold, rds_clock, 205, 109, SecondaryColor, SecondaryColorSmooth, 16);
|
tftPrint(1, rds_clockold, 205, 109, SecondaryColor, SecondaryColorSmooth, 16);
|
||||||
} else {
|
} else {
|
||||||
tftReplace(1, rds_clockold, rds_clock, 205, 163, SecondaryColor, SecondaryColorSmooth, 16);
|
tftPrint(1, rds_clockold, 205, 163, SecondaryColor, SecondaryColorSmooth, 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dropout = true;
|
dropout = true;
|
||||||
@@ -333,9 +333,9 @@ void readRds() {
|
|||||||
}
|
}
|
||||||
if (radio.rds.hasCT) {
|
if (radio.rds.hasCT) {
|
||||||
if (advancedRDS) {
|
if (advancedRDS) {
|
||||||
tftReplace(1, rds_clockold, rds_clock, 205, 109, PrimaryColor, PrimaryColorSmooth, 16);
|
tftPrint(1, rds_clockold, 205, 109, PrimaryColor, PrimaryColorSmooth, 16);
|
||||||
} else {
|
} else {
|
||||||
tftReplace(1, rds_clockold, rds_clock, 205, 163, PrimaryColor, PrimaryColorSmooth, 16);
|
tftPrint(1, rds_clockold, 205, 163, PrimaryColor, PrimaryColorSmooth, 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dropout = false;
|
dropout = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user