mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 20:33:53 +01:00
don't generate rds groups for disabled streams
This commit is contained in:
@@ -318,6 +318,10 @@ void add_checkwords(RDSGroup *group, uint8_t *bits)
|
||||
}
|
||||
|
||||
void get_rds_bits(RDSEncoder* enc, uint8_t *bits, uint8_t stream) {
|
||||
if((rdsMod->params.rdsgen > stream ? 1 : 0) == 0) {
|
||||
memset(bits, 0, BITS_PER_GROUP);
|
||||
return;
|
||||
}
|
||||
RDSGroup group;
|
||||
get_rds_group(enc, &group, stream);
|
||||
add_checkwords(&group, bits);
|
||||
|
||||
Reference in New Issue
Block a user