mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 12:53:53 +01:00
change newline to carraige return
This commit is contained in:
@@ -30,7 +30,7 @@ void poll_control_pipe(RDSModulator* mod) {
|
|||||||
|
|
||||||
if (bytes_read <= 0) return;
|
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");
|
if(token == NULL) token = strtok((char *)pipe_buf, "\x1A");
|
||||||
while (token != NULL) {
|
while (token != NULL) {
|
||||||
size_t cmd_len = strlen(token);
|
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);
|
strncpy((char *)cmd_buf, token, CMD_BUFFER_SIZE - 1);
|
||||||
process_ascii_cmd(mod, cmd_buf);
|
process_ascii_cmd(mod, cmd_buf);
|
||||||
}
|
}
|
||||||
token = strtok(NULL, "\n");
|
token = strtok(NULL, "\r");
|
||||||
if(token == NULL) token = strtok(NULL, "\x1A");
|
if(token == NULL) token = strtok(NULL, "\x1A");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user