This commit is contained in:
Kuba 2023-10-30 19:46:57 +00:00
parent b31bc92627
commit eb297bc731
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ ResultAndArg poll_control_pipe() {
printf("RT B set to: \"%s\"\n", arg);
resarg.res = CONTROL_PIPE_RT_SET;
} else if(fifo[0] == 'R' && fifo[1] == 'D' && fifo[2] == 'S') {
int rds = ( strcmp(arg, "ON") == 1 );
int rds = ( strcmp(arg, "OFF") == 0 );
printf("Set RDS to ");
if(rds) printf("ON\n"); else printf("OFF\n");
resarg.res = CONTROL_PIPE_RDS_SET;