This commit is contained in:
2025-03-17 03:19:11 +01:00
parent 55c6788e77
commit e75bfa86a7
2 changed files with 29 additions and 4 deletions
+19 -1
View File
@@ -72,6 +72,11 @@ static void handle_dps1(char *arg, RDSModulator* mod, char* output) {
set_rds_dps1(mod->enc, xlat(arg));
strcpy(output, "+\0");
}
static void handle_dps1mod(char *arg, RDSModulator* mod, char* output) {
arg[1] = 0;
mod->enc->data[mod->enc->program].dps1_mode = strtoul((char *)arg, NULL, 10);
strcpy(output, "+\0");
}
static void handle_pty(char *arg, RDSModulator* mod, char* output) {
arg[2] = 0;
@@ -233,6 +238,16 @@ static void handle_dps1en(char *arg, RDSModulator* mod, char* output) {
strcpy(output, "+\0");
}
static void handle_labper(char *arg, RDSModulator* mod, char* output) {
mod->enc->data[mod->enc->program].dps_label_period = strtoul((char *)arg, NULL, 10);
strcpy(output, "+\0");
}
static void handle_spsper(char *arg, RDSModulator* mod, char* output) {
mod->enc->data[mod->enc->program].static_ps_period = strtoul((char *)arg, NULL, 10);
strcpy(output, "+\0");
}
static void handle_ptynen(char *arg, RDSModulator* mod, char* output) {
arg[1] = 0;
mod->enc->data[mod->enc->program].ptyn_enabled = strtoul((char *)arg, NULL, 10);
@@ -417,11 +432,14 @@ static const command_handler_t commands_eq7[] = {
{"GRPSEQ", handle_grpseq, 6},
{"RDSGEN", handle_rdsgen, 6},
{"DPS1EN", handle_dps1en, 6},
{"LABPER", handle_labper, 6},
{"SPSPER", handle_spsper, 6},
};
static const command_handler_t commands_eq8[] = {
{"SHORTRT", handle_shortrt, 7},
{"PROGRAM", handle_program, 7}
{"PROGRAM", handle_program, 7},
{"DPS1MOD", handle_dps1mod, 7},
};
static const command_handler_t commands_exact[] = {