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

handle no good group

This commit is contained in:
2025-03-14 17:07:52 +01:00
parent b62dc5d6aa
commit 8182f03a7b

View File

@@ -296,6 +296,7 @@ static void get_rds_group(uint16_t *blocks) {
}
uint8_t good_group = 0;
uint8_t cant_find_group = 0;
char grp;
while(good_group == 0) {
@@ -313,6 +314,13 @@ static void get_rds_group(uint16_t *blocks) {
if(grp == 'R' && rtplus_cfg.enabled) good_group = 1;
if(grp == '3' && oda_state.count != 0) good_group = 1;
if(grp == 'F' && rds_data.lps[0] != '\0') good_group = 1;
if(!good_group) cant_find_group++;
if(cant_find_group == 23) {
cant_find_group = 0;
goto group_coded;
break;
}
}
switch (grp)