Skip to content
Snippets Groups Projects
Commit e9d56ae9 authored by Leah Rowe's avatar Leah Rowe
Browse files

util/spkmodem_recv: Use parentheses on comparisons


Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
parent 57683e0f
Branches
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment