0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00
This commit is contained in:
2025-03-22 22:00:19 +01:00
parent eaec01bad8
commit bfb21b8b0a
2 changed files with 9 additions and 11 deletions

View File

@@ -613,10 +613,9 @@ static void get_rds_group(RDSEncoder* enc, uint16_t *blocks, uint8_t stream) {
return;
}
if(enc->encoder_data.rds2_mode == 0) { // tunneling
blocks[0] = enc->state->last_stream0_group[0];
blocks[1] = enc->state->last_stream0_group[1];
blocks[2] = enc->state->last_stream0_group[2];
blocks[3] = enc->state->last_stream0_group[3];
blocks[1] = enc->state->last_stream0_group[0];
blocks[2] = enc->state->last_stream0_group[1];
blocks[3] = enc->state->last_stream0_group[2];
return;
} else {
// TODO: add store command
@@ -754,10 +753,9 @@ group_coded:
blocks[2] = enc->data[enc->program].pi;
}
enc->state[enc->program].last_stream0_group[0] = blocks[0];
enc->state[enc->program].last_stream0_group[1] = blocks[1];
enc->state[enc->program].last_stream0_group[2] = blocks[2];
enc->state[enc->program].last_stream0_group[3] = blocks[3];
enc->state[enc->program].last_stream0_group[0] = blocks[1];
enc->state[enc->program].last_stream0_group[1] = blocks[2];
enc->state[enc->program].last_stream0_group[2] = blocks[3];
}
void get_rds_bits(RDSEncoder* enc, uint8_t *bits, uint8_t stream) {