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

util/spkmodem_recv: Reduced indentation in loop


Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
parent fdb35867
No related merge requests found
...@@ -67,31 +67,31 @@ main () ...@@ -67,31 +67,31 @@ main ()
if (llp == FLUSH_TIMEOUT) if (llp == FLUSH_TIMEOUT)
fflush (stdout); fflush (stdout);
if (f2 > FREQ_SEP_MIN && f2 < FREQ_SEP_MAX if (f2 <= FREQ_SEP_MIN || f2 >= FREQ_SEP_MAX
&& f1 > FREQ_DATA_MIN && f1 < FREQ_DATA_MAX) { || f1 <= FREQ_DATA_MIN || f1 >= FREQ_DATA_MAX) {
read_sample ();
continue;
}
#if DEBUG #if DEBUG
printf ("%d %d %d @%d\n", f1, f2, FREQ_DATA_THRESHOLD, printf ("%d %d %d @%d\n", f1, f2, FREQ_DATA_THRESHOLD,
ftell (stdin) - sizeof (trame)); ftell (stdin) - sizeof (trame));
#endif #endif
if (f1 < FREQ_DATA_THRESHOLD) if (f1 < FREQ_DATA_THRESHOLD)
c |= (1 << bitn); c |= (1 << bitn);
bitn--; bitn--;
if (bitn < 0) { if (bitn < 0) {
#if DEBUG #if DEBUG
printf ("<%c, %x>", c, c); printf ("<%c, %x>", c, c);
#else #else
printf ("%c", c); printf ("%c", c);
#endif #endif
bitn = 7; bitn = 7;
c = 0; c = 0;
}
lp = 0;
llp = 0;
for (i = 0; i < SAMPLES_PER_TRAME; i++)
read_sample ();
continue;
} }
read_sample (); lp = 0;
llp = 0;
for (i = 0; i < SAMPLES_PER_TRAME; i++)
read_sample ();
} }
return 0; return 0;
} }
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