Mod on double PI checker

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-09-01 18:31:12 +02:00
parent 5dd27fc8da
commit aaa72c1c88

View File

@@ -4759,12 +4759,19 @@ uint8_t doAutoMemory(uint16_t startfreq, uint16_t stopfreq, uint8_t startmem, ui
if (doublepi != 0) {
for (byte x = (doublepi == 1 ? startmem : 0); x <= (doublepi == 1 ? stopmem : EE_PRESETS_CNT - 1); x++) {
if (presets[x].RDSPI[0] != '\0') {
bool allMatch = true;
for (byte i = 0; i < 4; i++) {
if (presets[x].RDSPI[i] != radio.rds.picode[i]) {
dostore = false;
allMatch = false;
break;
}
}
if (allMatch) {
dostore = false;
break;
}
}
}
}