Fill AF block too when no AFs

This commit is contained in:
KubaPro010 2025-08-06 13:02:03 +02:00
parent 81b1422196
commit 741409077f
3 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@ -52,3 +52,5 @@ Thumbs.db
# Libraries
lib/
lib64/
src/pifmrds/rds_test

View File

@ -139,6 +139,8 @@ void get_rds_group(int *buffer, int stereo, int ct_clock_enabled) { //ptyn?
}
af_state = af_state + 2;
if(af_state > rds_params.af[0]) af_state = 0;
} else {
blocks[2] = 244 << 8 | 0xCD; // 244 is the base, since 244+0 is still 244, 0 AFs, the CD is just a filler
}
blocks[3] = rds_params.ps[ps_state*2] << 8 | rds_params.ps[ps_state*2+1];
ps_state++;

Binary file not shown.