util/spkmodem_recv: Use tabs for indentation

The GNU indentation style is hard to read.

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-16 07:53:23 +01:00
parent 9152d0f939
commit 22633e0dc0
1 changed files with 54 additions and 57 deletions

View File

@ -37,14 +37,14 @@ read_sample (void)
amplitude += abs (trame[ringpos]);
if (pos ? (trame[ringpos] < -THRESHOLD)
: (trame[ringpos] > +THRESHOLD))
{
: (trame[ringpos] > +THRESHOLD)) {
pulse[ringpos] = 1;
pos = !pos;
f2++;
}
else
} else {
pulse[ringpos] = 0;
}
ringpos++;
ringpos %= 2 * SAMPLES_PER_TRAME;
lp++;
@ -57,10 +57,8 @@ main ()
char c = 0;
int i;
int llp = 0;
while (!feof (stdin))
{
if (lp > 3 * SAMPLES_PER_TRAME)
{
while (!feof (stdin)) {
if (lp > 3 * SAMPLES_PER_TRAME) {
bitn = 7;
c = 0;
lp = 0;
@ -68,9 +66,9 @@ main ()
}
if (llp == FLUSH_TIMEOUT)
fflush (stdout);
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) {
#if DEBUG
printf ("%d %d %d @%d\n", f1, f2, FREQ_DATA_THRESHOLD,
ftell (stdin) - sizeof (trame));
@ -78,8 +76,7 @@ main ()
if (f1 < FREQ_DATA_THRESHOLD)
c |= (1 << bitn);
bitn--;
if (bitn < 0)
{
if (bitn < 0) {
#if DEBUG
printf ("<%c, %x>", c, c);
#else