mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-30 08:49:15 +02:00
more commands and even more in lua api
This commit is contained in:
@@ -204,17 +204,6 @@ static void handle_grpseq(char *arg, RDSModulator* mod, char* output) {
|
||||
else set_rds_grpseq(mod->enc, arg);
|
||||
strcpy(output, "+");
|
||||
}
|
||||
static void handle_grpseq2(char *arg, RDSModulator* mod, char* output) {
|
||||
if (arg[0] == 0) set_rds_grpseq2(mod->enc, "\0");
|
||||
else set_rds_grpseq2(mod->enc, arg);
|
||||
strcpy(output, "+");
|
||||
}
|
||||
|
||||
static void handle_dttmout(char *arg, RDSModulator* mod, char* output) {
|
||||
mod->enc->data[mod->enc->program].rt_text_timeout = atoi(arg);
|
||||
mod->enc->state[mod->enc->program].rt_text_timeout_state = mod->enc->data[mod->enc->program].rt_text_timeout;
|
||||
strcpy(output, "+");
|
||||
}
|
||||
|
||||
static void handle_reset(char *arg, RDSModulator* mod, char* output) {
|
||||
(void)arg;
|
||||
@@ -224,12 +213,6 @@ static void handle_reset(char *arg, RDSModulator* mod, char* output) {
|
||||
strcpy(output, "+");
|
||||
}
|
||||
|
||||
static void handle_init(char *arg, RDSModulator* mod, char* output) {
|
||||
(void)arg;
|
||||
set_rds_defaults(mod->enc, mod->enc->program);
|
||||
strcpy(output, "+");
|
||||
}
|
||||
|
||||
static void handle_eonen(char *arg, char *pattern, RDSModulator* mod, char* output) {
|
||||
mod->enc->data[mod->enc->program].eon[atoi(pattern)-1].enabled = atoi(arg);
|
||||
strcpy(output, "+");
|
||||
@@ -336,12 +319,9 @@ static const command_handler_t commands_eq7[] = {
|
||||
};
|
||||
|
||||
static const command_handler_t commands_eq8[] = {
|
||||
{"GRPSEQ2", handle_grpseq2, 7},
|
||||
{"DTTMOUT", handle_dttmout, 7},
|
||||
{"ERTPRUN", handle_ertprun, 7},
|
||||
};
|
||||
static const command_handler_t commands_exact[] = {
|
||||
{"INIT", handle_init, 4},
|
||||
{"RESET", handle_reset, 5},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user