Fix PI recall in memory mode

Also added PI check on manual entries and updated the doc
This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-23 20:05:50 +02:00
parent e5250556a6
commit 4cc1987e21
3 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -2764,9 +2764,11 @@ void DoMemoryPosTune() {
}
if (presets[memorypos].RDSPI[0] != '\0') {
for (byte i = 0; i < 5; i++) {
for (byte i = 0; i < 4; i++) {
radio.rds.picode[i] = presets[memorypos].RDSPI[i];
}
radio.rds.picode[4] = ' ';
radio.rds.picode[5] = ' ';
radio.rds.picode[6] = '\0';
radio.rds.correctPI = (uint16_t)strtol(radio.rds.picode, NULL, 16);
} else {