mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-30 08:49:15 +02:00
try to do rds2, again
This commit is contained in:
@@ -546,8 +546,9 @@ static uint8_t get_rds_custom_groups(RDSEncoder* enc, uint16_t *blocks) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void get_rds_group(RDSEncoder* enc, uint16_t *blocks) {
|
||||
static void get_rds_group(RDSEncoder* enc, uint16_t *blocks, uint8_t stream) {
|
||||
blocks[0] = enc->data[enc->program].pi;
|
||||
if(stream != 0) blocks[0] = 0;
|
||||
blocks[1] = 0;
|
||||
blocks[2] = 0;
|
||||
blocks[3] = 0;
|
||||
@@ -726,9 +727,9 @@ group_coded:
|
||||
}
|
||||
}
|
||||
|
||||
void get_rds_bits(RDSEncoder* enc, uint8_t *bits) {
|
||||
void get_rds_bits(RDSEncoder* enc, uint8_t *bits, uint8_t stream) {
|
||||
static uint16_t out_blocks[GROUP_LENGTH];
|
||||
get_rds_group(enc, out_blocks);
|
||||
get_rds_group(enc, out_blocks, stream);
|
||||
add_checkwords(out_blocks, bits);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user