This commit is contained in:
Kuba 2023-11-07 13:15:37 +00:00
parent 3bf4fe1039
commit 55374810b5
1 changed files with 2 additions and 2 deletions

View File

@ -182,9 +182,9 @@ ResultAndArg poll_control_pipe() {
resarg.res = CONTROL_PIPE_RDSVOL_SET;
resarg.arg = arg;
} else if(fifo[0] == 'P' && fifo[1] == 'A' && fifo[2] == 'U') {
int togg = ( strcmp(arg, "OFF") == 0 );
int togg = ( strcmp(arg, "ON") == 0 );
printf("Set paused to ");
if(!togg) printf("ON\n"); else printf("OFF\n");
if(togg) printf("ON\n"); else printf("OFF\n");
resarg.res = CONTROL_PIPE_PAUSE_SET;
resarg.arg_int = togg;
}