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:
@@ -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);
|
||||||
}
|
}
|
||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user