add set dps1

This commit is contained in:
2025-03-16 19:54:35 +01:00
parent af320e6b38
commit 76ad8c4ecf
2 changed files with 23 additions and 9 deletions
+7
View File
@@ -67,6 +67,12 @@ static void handle_rt1(char *arg, RDSModulator* mod, char* output) {
strcpy(output, "+\0");
}
static void handle_dps(char *arg, RDSModulator* mod, char* output) {
arg[RT_LENGTH * 2] = 0;
set_rds_dps1(mod->enc, xlat(arg));
strcpy(output, "+\0");
}
static void handle_pty(char *arg, RDSModulator* mod, char* output) {
arg[2] = 0;
mod->enc->data[mod->enc->program].pty = strtoul((char *)arg, NULL, 10);
@@ -380,6 +386,7 @@ static const command_handler_t commands_eq4[] = {
static const command_handler_t commands_eq5[] = {
{"TEXT", handle_rt1, 4},
{"DPS1", handle_dps1, 4},
{"PTYN", handle_ptyn, 4},
{"AFCH", handle_afch, 4},
{"UDG1", handle_udg1, 4},