This commit is contained in:
Sjef Verhoeven PE5PVB
2023-07-29 15:52:33 +02:00
parent 6490cabfd2
commit 4cf3877b39
4 changed files with 70 additions and 73 deletions
+6 -2
View File
@@ -402,9 +402,12 @@ void TEF6686::readRDS(bool showrdserrors)
if (rdsReady) { // We have all data to decode... let's go...
//PI decoder
if (rds.correct) rds.correctPI = rds.rdsA;
if (rds.correct && afreset) {
rds.correctPI = rds.rdsA;
afreset = false;
}
if (rds.region != 1 && (!rds.rdsAerror || rds.pierrors)) {
if (rds.region != 1 && (rds.correct || rds.pierrors)) {
if (rds.rdsA != piold) {
piold = rds.rdsA;
rds.picode[0] = (rds.rdsA >> 12) & 0xF;
@@ -923,6 +926,7 @@ void TEF6686::clearRDS (bool fullsearchrds)
ps_counter = 0;
af_counter = 0;
eon_counter = 0;
afreset = true;
rds.MS = 0;
}