Another approch to prevent flashing PI when PI errors are on and signal is weak.

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-11-07 12:41:06 +01:00
parent 5d86568f48
commit faf55dc60c

View File

@@ -394,7 +394,7 @@ void TEF6686::readRDS(byte showrdserrors)
}
if (((!rdsAerrorThreshold && !rdsBerrorThreshold && !rdsCerrorThreshold && !rdsDerrorThreshold) || (rds.pierrors && !errorfreepi))) {
if (rds.rdsA != piold) {
if (rds.rdsA != piold && rds.rdsA != 0) {
piold = rds.rdsA;
rds.picode[0] = (rds.rdsA >> 12) & 0xF;
rds.picode[1] = (rds.rdsA >> 8) & 0xF;