0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

fix the settings udg

This commit is contained in:
2025-03-14 18:05:26 +01:00
parent 7c120f8875
commit f35a3517d8

View File

@@ -623,11 +623,15 @@ void set_rds_grpseq(unsigned char* grpseq) {
}
void set_rds_udg1(uint8_t len, uint16_t (*groups)[3]) {
rds_data.udg1_len = len;
memcpy(&rds_data.udg1, &groups, sizeof(groups));
rds_data.udg1_len = len;
if (len > 0 && groups != NULL) {
memcpy(rds_data.udg1, groups, len * sizeof(uint16_t[3]));
}
}
void set_rds_udg2(uint8_t len, uint16_t (*groups)[3]) {
rds_data.udg2_len = len;
memcpy(&rds_data.udg2, &groups, sizeof(groups));
rds_data.udg2_len = len;
if (len > 0 && groups != NULL) {
memcpy(rds_data.udg2, groups, len * sizeof(uint16_t[3]));
}
}