From b3fe01838484e401f939ad90ec85ff93c12098d2 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 16 Mar 2025 14:18:06 +0100 Subject: [PATCH] change newline to carraige return --- 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 699ff7f..df66deb 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, "\n"); + token = strtok((char *)pipe_buf, "\r"); 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, "\n"); + token = strtok(NULL, "\r"); if(token == NULL) token = strtok(NULL, "\x1A"); } }