From e4f7fb36d8ba0919ff302141617621b1e980b7e3 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 16 Mar 2025 18:41:18 +0100 Subject: [PATCH] oh ok --- src/control_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/control_pipe.c b/src/control_pipe.c index 91d8332..94b6b42 100644 --- a/src/control_pipe.c +++ b/src/control_pipe.c @@ -30,7 +30,7 @@ void poll_control_pipe(RDSModulator* mod) { if (bytes_read <= 0) return; - token = strtok((char *)pipe_buf, "\r"); + token = strtok((char *)pipe_buf, "\r\n"); if(token == NULL) token = strtok((char *)pipe_buf, "\x1A"); while (token != NULL) { size_t cmd_len = strlen(token); @@ -39,7 +39,7 @@ void poll_control_pipe(RDSModulator* mod) { strncpy((char *)cmd_buf, token, CMD_BUFFER_SIZE - 1); process_ascii_cmd(mod, cmd_buf); } - token = strtok(NULL, "\r"); + token = strtok(NULL, "\r\n"); if(token == NULL) token = strtok(NULL, "\x1A"); } }