will the code work? No! why would it?

This commit is contained in:
Kuba 2023-10-30 19:45:26 +00:00
parent cf7565472e
commit b31bc92627
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ ResultAndArg poll_control_pipe() {
printf("Set RDS to ");
if(rds) printf("ON\n"); else printf("OFF\n");
resarg.res = CONTROL_PIPE_RDS_SET;
resarg.arg = rds;
resarg.arg = (char)rds;
}
}
return resarg;

View File

@ -188,7 +188,7 @@ int tx(uint32_t carrier_freq, char *audio_file, uint16_t pi, char *ps, char *rt,
if(pollResult.res == CONTROL_PIPE_PS_SET) {
varying_ps = 0;
} else if(pollResult.res == CONTROL_PIPE_RDS_SET) {
drds = pollResult.arg;
drds = (int)pollResult.arg;
}
}