This commit is contained in:
Kuba 2024-02-12 21:48:44 +01:00 committed by GitHub
parent bfa20d4f2c
commit d323e40d92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ void get_rds_group(int *buffer, int stereo, int ct_clock_enabled) { //no idea ho
if(!get_rds_ct_group(blocks, ct_clock_enabled)) { // CT (clock time) has priority on other group types (when its on) if(!get_rds_ct_group(blocks, ct_clock_enabled)) { // CT (clock time) has priority on other group types (when its on)
if(state < 4) { if(state < 4) {
blocks[1] = 0x0000 | rds_params.tp << 10 | rds_params.pty << 5 | rds_params.ta << 4 | rds_params.ms << 3 | ps_state; blocks[1] = 0x0000 | rds_params.tp << 10 | rds_params.pty << 5 | rds_params.ta << 4 | rds_params.ms << 3 | ps_state;
if((ps_state == 3) && stereo) blocks[1] |= 0x0004; // DI = 1 - Stereo if((ps_state == 3) && stereo) blocks[1] |= 0x0004; // DI Stereo, someone explain from where the 0004 comes from and what does "bit d0" mean?
if(rds_params.af[0]) { // AF if(rds_params.af[0]) { // AF
if(af_state == 0) { if(af_state == 0) {
blocks[2] = (rds_params.af[0] + 224) << 8 | rds_params.af[1]; blocks[2] = (rds_params.af[0] + 224) << 8 | rds_params.af[1];