This commit is contained in:
Sjef Verhoeven PE5PVB
2024-04-10 17:48:07 +02:00
parent 209f7079b7
commit 085b4a77c5
2 changed files with 19 additions and 4 deletions
+19 -3
View File
@@ -2537,6 +2537,17 @@ bool IsStationEmpty() {
return false;
}
bool IsFrequencyUsed(unsigned int freq) {
bool result = false;
for (byte x = scanstart; x <= scanstop; x++) {
if (presets[x].frequency == freq) {
result = true;
break;
}
}
return result;
}
void ShowMemoryPos() {
if (tunemode == TUNE_MEM) {
int memposcolor = 0;
@@ -2635,18 +2646,23 @@ void DoMemoryPosTune() {
}
}
radio.clearRDS(fullsearchrds);
String stationText = "";
if (presets[memorypos].RDSPS[0] != '\0') {
for (int i = 0; i < 9; i++) stationText += presets[memorypos].RDSPS[i];
for (byte i = 0; i < 9; i++) stationText += presets[memorypos].RDSPS[i];
}
if (presets[memorypos].RDSPI[0] != '\0') {
for (int i = 0; i < 5; i++) {
for (byte i = 0; i < 5; i++) {
radio.rds.picode[i] = presets[memorypos].RDSPI[i];
}
radio.rds.picode[6] = '\0';
RDSstatus = true;
} else {
radio.rds.picode[0] = '\0';
for (byte i = 0; i < 6; i++) {
radio.rds.picode[i] = '\0';
}
}
radio.rds.stationName = stationText;
-1
View File
@@ -856,7 +856,6 @@ void showCT() {
}
void showRadioText() {
// radio.rds.stationText = "Jetzt in Ö1: Öffentlich-rechtlich auf Bewährung";
if (!screenmute) {
if (radio.rds.hasRT && radio.rds.stationText.length() > 0) {
if (String(radio.rds.stationText + radio.rds.stationText32).length() != Radiotextlengthold) {