mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-30 16:59:15 +02:00
fix cmd
This commit is contained in:
+1
-14
@@ -208,20 +208,7 @@ static void handle_eccen(unsigned char *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void handle_grpseq(unsigned char *arg) {
|
static void handle_grpseq(unsigned char *arg) {
|
||||||
unsigned char grps[24];
|
set_rds_grpseq(arg);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Command tables organized by delimiter position and command length
|
// Command tables organized by delimiter position and command length
|
||||||
|
|||||||
Reference in New Issue
Block a user