Fix PI recall in memory mode
Also added PI check on manual entries and updated the doc
This commit is contained in:
+3
-1
@@ -2764,9 +2764,11 @@ void DoMemoryPosTune() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (presets[memorypos].RDSPI[0] != '\0') {
|
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[i] = presets[memorypos].RDSPI[i];
|
||||||
}
|
}
|
||||||
|
radio.rds.picode[4] = ' ';
|
||||||
|
radio.rds.picode[5] = ' ';
|
||||||
radio.rds.picode[6] = '\0';
|
radio.rds.picode[6] = '\0';
|
||||||
radio.rds.correctPI = (uint16_t)strtol(radio.rds.picode, NULL, 16);
|
radio.rds.correctPI = (uint16_t)strtol(radio.rds.picode, NULL, 16);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Binary file not shown.
+11
-1
@@ -258,6 +258,16 @@ void Communication() {
|
|||||||
|
|
||||||
if (memms > 1) error |= (1 << 3);
|
if (memms > 1) error |= (1 << 3);
|
||||||
|
|
||||||
|
if (rdsPi[0] != '\0') {
|
||||||
|
for (int i = 0; i < 4; i++) {
|
||||||
|
char c = rdsPi[i];
|
||||||
|
if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'))) {
|
||||||
|
error |= (1 << 5);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
error |= (1 << 7);
|
error |= (1 << 7);
|
||||||
memorypos = mempos;
|
memorypos = mempos;
|
||||||
@@ -453,7 +463,7 @@ void XDRGTKRoutine() {
|
|||||||
if (!screenmute) {
|
if (!screenmute) {
|
||||||
if (!usesquelch) {
|
if (!usesquelch) {
|
||||||
tftPrint(-1, "SQ:", 212, 145, BackgroundColor, BackgroundColor, 16);
|
tftPrint(-1, "SQ:", 212, 145, BackgroundColor, BackgroundColor, 16);
|
||||||
showAutoSquelch(0);
|
showAutoSquelch(0);
|
||||||
} else {
|
} else {
|
||||||
Squelch = -150;
|
Squelch = -150;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user