Advanced RDS bugfixes

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-07-09 00:27:56 +02:00
parent 93ac9fdcf7
commit e473a22fe1
2 changed files with 31 additions and 34 deletions

View File

@@ -434,6 +434,7 @@ void TEF6686::readRDS(bool showrdserrors)
case RDS_GROUP_2A: {
if (showrdserrors || rds.correct) {
// RT decoder
rds.hasRT = true;
rds.rtAB = (bitRead(rds.rdsB, 4)); // Get AB flag
if (rds.rtAB != rtABold) { // Erase old RT, because of AB change
@@ -632,6 +633,7 @@ void TEF6686::clearRDS (bool fullsearchrds)
rds.stationText = "";
rds.RTContent1 = "";
rds.RTContent2 = "";
rds.PTYN = "";
for (i = 0; i < 9; i++) {
ps_buffer[i] = 0;
@@ -675,9 +677,11 @@ void TEF6686::clearRDS (bool fullsearchrds)
rds.hasRT = false;
rds.hasRDS = false;
rds.hasTP = false;
rds.hasAF = false;
rds.hasTA = false;
rds.hasEON = false;
rds.hasCT = false;
rds.hasRDSplus = false;
rds.correct = false;
rt_process = false;
ps_process = false;