This commit is contained in:
Kuba 2023-10-31 13:30:48 +00:00
parent 106ca83d64
commit 46125bbf41
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ ResultAndArg poll_control_pipe() {
resarg.arg = (char)rds;
} else if(fifo[0] == 'D' && fifo[1] == 'E' && fifo[2] == 'V') {
resarg.res = CONTROL_PIPE_DEVIATION_SET;
resarg.arg = atoi(arg);
resarg.arg = arg;
}
}
return resarg;

View File

@ -193,7 +193,7 @@ int tx(uint32_t carrier_freq, char *audio_file, uint16_t pi, char *ps, char *rt,
pad_reg[GPIO_PAD_0_27] = 0x5a000018 + (int)pollResult.arg;
pad_reg[GPIO_PAD_28_45] = 0x5a000018 + (int)pollResult.arg;
} else if(pollResult.res == CONTROL_PIPE_DEVIATION_SET) {
deviation = pollResult.arg;
deviation = atoi(pollResult.arg);
deviation_scale_factor= 0.1 * (deviation );
}
}