Fixed RDS reset when choosing memorychannel to store

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-29 00:30:48 +02:00
parent fd4c58531a
commit 460e3a282a
+15 -11
View File
@@ -1732,9 +1732,9 @@ void BWButtonPress() {
if (band == BAND_FM || band == BAND_OIRT) { if (band == BAND_FM || band == BAND_OIRT) {
doStereoToggle(); doStereoToggle();
} else { } else {
BWset++; BWset++;
doBW(); doBW();
BWtune = true; BWtune = true;
} }
} else { } else {
BWset++; BWset++;
@@ -2198,10 +2198,12 @@ void KeyUp() {
if (XDRGTKUSB || XDRGTKTCP) { if (XDRGTKUSB || XDRGTKTCP) {
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 (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16); if (!memorystore) {
radio.clearRDS(fullsearchrds); if (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16);
ShowFreq(0); radio.clearRDS(fullsearchrds);
store = true; ShowFreq(0);
store = true;
}
} else { } else {
MenuUp(); MenuUp();
} }
@@ -2244,10 +2246,12 @@ void KeyDown() {
if (XDRGTKUSB || XDRGTKTCP) { if (XDRGTKUSB || XDRGTKTCP) {
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 (radio.rds.hasCT) tftPrint(1, rds_clock, 38, 109, BackgroundColor, BackgroundColor, 16); if (!memorystore) {
radio.clearRDS(fullsearchrds); if (radio.rds.hasCT) tftPrint(1, rds_clock, 205, 163, BackgroundColor, BackgroundColor, 16);
ShowFreq(0); radio.clearRDS(fullsearchrds);
store = true; ShowFreq(0);
store = true;
}
} else { } else {
MenuDown(); MenuDown();
} }