i hate myself

This commit is contained in:
Kuba 2023-11-04 10:08:18 +00:00
parent 208aaf2df7
commit 7ec59ca9a3
1 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ ResultAndArg poll_control_pipe() {
resarg.res = CONTROL_PIPE_PTY_SET; resarg.res = CONTROL_PIPE_PTY_SET;
} else if(fifo[0] == 'P' && fifo[1] == 'W' && fifo[2] == 'R') { } else if(fifo[0] == 'P' && fifo[1] == 'W' && fifo[2] == 'R') {
int power_level = atoi(arg); int power_level = atoi(arg);
resarg.arg = (char)power_level; resarg.arg = (char*)power_level;
printf("POWER set to: \"%s\"\n", arg); printf("POWER set to: \"%s\"\n", arg);
resarg.res = CONTROL_PIPE_PWR_SET; resarg.res = CONTROL_PIPE_PWR_SET;
} else if(fifo[0] == 'R' && fifo[1] == 'T' && fifo[2] == 'B') { } else if(fifo[0] == 'R' && fifo[1] == 'T' && fifo[2] == 'B') {
@ -144,7 +144,7 @@ ResultAndArg poll_control_pipe() {
printf("Set RDS to "); printf("Set RDS to ");
if(rds) printf("OFF\n"); else printf("ON\n"); if(rds) printf("OFF\n"); else printf("ON\n");
resarg.res = CONTROL_PIPE_RDS_SET; resarg.res = CONTROL_PIPE_RDS_SET;
resarg.arg = (char)rds; resarg.arg = (char*)rds;
} else if(fifo[0] == 'D' && fifo[1] == 'E' && fifo[2] == 'V') { } else if(fifo[0] == 'D' && fifo[1] == 'E' && fifo[2] == 'V') {
printf("Set Deviation to "); printf("Set Deviation to ");
printf(arg); printf(arg);
@ -162,7 +162,7 @@ ResultAndArg poll_control_pipe() {
printf("Set Stereo Toggle to "); printf("Set Stereo Toggle to ");
if(!togg) printf("ON\n"); else printf("OFF\n"); if(!togg) printf("ON\n"); else printf("OFF\n");
resarg.res = CONTROL_PIPE_STEREO_SET; resarg.res = CONTROL_PIPE_STEREO_SET;
resarg.arg = (char)togg; resarg.arg = (char*)togg;
} else if(fifo[0] == 'C' && fifo[1] == 'O' && fifo[2] == 'D') { } else if(fifo[0] == 'C' && fifo[1] == 'O' && fifo[2] == 'D') {
printf("Set Compressor Decay to "); printf("Set Compressor Decay to ");
printf(arg); printf(arg);