From 9e96b843663df7d26b8dbd8afc6d984554e1c045 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 16 Mar 2025 20:01:36 +0100 Subject: [PATCH] lol --- src/ascii_cmd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ascii_cmd.c b/src/ascii_cmd.c index 3c92d13..ac05fc7 100644 --- a/src/ascii_cmd.c +++ b/src/ascii_cmd.c @@ -226,6 +226,12 @@ static void handle_rt1en(char *arg, RDSModulator* mod, char* output) { strcpy(output, "+\0"); } +static void handle_dps1en(char *arg, RDSModulator* mod, char* output) { + arg[1] = 0; + mod->enc->data[mod->enc->program].dps1_enabled = arg[0]; + 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); @@ -409,6 +415,7 @@ static const command_handler_t commands_eq7[] = { {"RTPRUN", handle_rtprun, 6}, {"GRPSEQ", handle_grpseq, 6}, {"RDSGEN", handle_rdsgen, 6} + {"DPS1EN", handle_dps1en, 6}, }; static const command_handler_t commands_eq8[] = {