summaryrefslogtreecommitdiff
path: root/util/spkmodem_recv/spkmodem-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/spkmodem_recv/spkmodem-recv.c')
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c6
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;
}