util/spkmodem_recv: Use parentheses on comparisons

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-16 13:42:35 +01:00
parent c0f2bf3077
commit 14190de9e8
1 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ handle_audio(void)
{
static int llp = 0;
if (lp > 3 * SAMPLES_PER_FRAME) {
if (lp > (3 * SAMPLES_PER_FRAME)) {
ascii_bit = 7;
ascii = 0;
lp = 0;
@ -57,8 +57,8 @@ handle_audio(void)
if (fflush(stdout) == EOF)
err(errno, NULL);
if (f2 <= FREQ_SEP_MIN || f2 >= FREQ_SEP_MAX
|| f1 <= FREQ_DATA_MIN || f1 >= FREQ_DATA_MAX) {
if ((f2 <= FREQ_SEP_MIN) || (f2 >= FREQ_SEP_MAX)
|| (f1 <= FREQ_DATA_MIN) || (f1 >= FREQ_DATA_MAX)) {
fetch_sample();
return;
}