0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

what is wrong

This commit is contained in:
2025-03-23 20:56:58 +01:00
parent baf5458d67
commit 9a5c6d023e

View File

@@ -436,7 +436,7 @@ static uint8_t get_rds_custom_groups2(RDSEncoder* enc, uint16_t *blocks) {
} }
static void get_rds_sequence_group(RDSEncoder* enc, uint16_t *blocks, char grp) { static void get_rds_sequence_group(RDSEncoder* enc, uint16_t *blocks, char grp) {
static uint8_t udg_idx; uint8_t udg_idx;
switch (grp) switch (grp)
{ {
default: default:
@@ -492,7 +492,7 @@ group_coded:
} }
static uint8_t check_rds_good_group(RDSEncoder* enc, char grp) { static uint8_t check_rds_good_group(RDSEncoder* enc, char grp) {
static uint8_t good_group = 0; uint8_t good_group = 0;
if(grp == '0') good_group = 1; if(grp == '0') good_group = 1;
if(grp == '1' && enc->data[enc->program].ecc != 0) good_group = 1; if(grp == '1' && enc->data[enc->program].ecc != 0) good_group = 1;
if(grp == '2' && (enc->data[enc->program].rt1_enabled || enc->data[enc->program].rt2_enabled)) good_group = 1; if(grp == '2' && (enc->data[enc->program].rt1_enabled || enc->data[enc->program].rt2_enabled)) good_group = 1;