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-14 17:02:37 +01:00
parent 1f30fdbc25
commit b62dc5d6aa

View File

@@ -208,20 +208,7 @@ static void handle_eccen(unsigned char *arg) {
}
static void handle_grpseq(unsigned char *arg) {
unsigned char grps[24];
int count = 0;
while (*arg && count < 24) {
unsigned int value;
if (sscanf((char *)arg, "%1X", &value) == 1) {
grps[count++] = (unsigned char)value;
arg++; // Move to the next character
} else {
break; // Stop if input is invalid
}
}
set_rds_grpseq(grps);
set_rds_grpseq(arg);
}
// Command tables organized by delimiter position and command length