mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 04:43:52 +01:00
what
This commit is contained in:
17
src/rds.c
17
src/rds.c
@@ -559,13 +559,6 @@ static uint8_t get_rds_custom_groups2(RDSEncoder* enc, uint16_t *blocks) {
|
|||||||
|
|
||||||
static void get_rds_group(RDSEncoder* enc, uint16_t *blocks, uint8_t stream) {
|
static void get_rds_group(RDSEncoder* enc, uint16_t *blocks, uint8_t stream) {
|
||||||
blocks[0] = enc->data[enc->program].pi;
|
blocks[0] = enc->data[enc->program].pi;
|
||||||
if(stream != 0) {
|
|
||||||
blocks[0] = 0;
|
|
||||||
if(get_rds_custom_groups2(enc, blocks)) {
|
|
||||||
goto group_coded;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
blocks[1] = 0;
|
blocks[1] = 0;
|
||||||
blocks[2] = 0;
|
blocks[2] = 0;
|
||||||
blocks[3] = 0;
|
blocks[3] = 0;
|
||||||
@@ -606,12 +599,20 @@ static void get_rds_group(RDSEncoder* enc, uint16_t *blocks, uint8_t stream) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(enc->data[enc->program].ct) {
|
if(enc->data[enc->program].ct && stream == 0) {
|
||||||
get_rds_ct_group(enc, blocks);
|
get_rds_ct_group(enc, blocks);
|
||||||
goto group_coded;
|
goto group_coded;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(stream != 0) {
|
||||||
|
blocks[0] = 0;
|
||||||
|
if(get_rds_custom_groups2(enc, blocks)) {
|
||||||
|
goto group_coded;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(get_rds_custom_groups(enc, blocks)) {
|
if(get_rds_custom_groups(enc, blocks)) {
|
||||||
goto group_coded;
|
goto group_coded;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user