You've already forked TEF6686_ESP32
Another approch to prevent flashing PI when PI errors are on and signal is weak.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user