0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

favor lua output

This commit is contained in:
2025-12-22 16:18:33 +01:00
parent 75031fc096
commit f9ca182838
2 changed files with 3 additions and 3 deletions

View File

@@ -577,6 +577,6 @@ void process_ascii_cmd(RDSModulator* mod, char *str, char *cmd_output) {
} }
} }
if (cmd_output != NULL && cmd_reached) strcpy(cmd_output, output);
if (!cmd_reached) strcpy(output, "?"); if (!cmd_reached) strcpy(output, "?");
if (cmd_output != NULL && cmd_reached) strcpy(cmd_output, output);
} }

View File

@@ -60,8 +60,8 @@ void poll_udp_server() {
strncpy(cmd_buf, token, BUF_SIZE - 1); strncpy(cmd_buf, token, BUF_SIZE - 1);
memset(cmd_output, 0, BUF_SIZE); memset(cmd_output, 0, BUF_SIZE);
process_ascii_cmd(mod, cmd_buf, cmd_output); process_ascii_cmd(mod, cmd_buf, NULL);
run_lua(cmd_buf, NULL); run_lua(cmd_buf, cmd_output);
size_t out_len = strlen(cmd_output); size_t out_len = strlen(cmd_output);
if (out_len > 0) { if (out_len > 0) {