diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-16 13:42:35 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-16 23:11:35 +0100 |
commit | 14190de9e8fc58e370b9ffa05206b7ce5e377833 (patch) | |
tree | d08d120cdb08fbba4b23cfc9175d0e51a8a44158 | |
parent | c0f2bf307723cf91a2a9274f616fd72f4bf8bc94 (diff) |
util/spkmodem_recv: Use parentheses on comparisons
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c index 2f2ff684..836363f0 100644 --- a/util/spkmodem_recv/spkmodem-recv.c +++ b/util/spkmodem_recv/spkmodem-recv.c @@ -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; } |