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]); amplitude += abs (trame[ringpos]);
if (pos ? (trame[ringpos] < -THRESHOLD) if (pos ? (trame[ringpos] < -THRESHOLD)
: (trame[ringpos] > +THRESHOLD)) : (trame[ringpos] > +THRESHOLD)) {
{
pulse[ringpos] = 1; pulse[ringpos] = 1;
pos = !pos; pos = !pos;
f2++; f2++;
} } else {
else
pulse[ringpos] = 0; pulse[ringpos] = 0;
}
ringpos++; ringpos++;
ringpos %= 2 * SAMPLES_PER_TRAME; ringpos %= 2 * SAMPLES_PER_TRAME;
lp++; lp++;
@ -57,10 +57,8 @@ main ()
char c = 0; char c = 0;
int i; int i;
int llp = 0; int llp = 0;
while (!feof (stdin)) while (!feof (stdin)) {
{ if (lp > 3 * SAMPLES_PER_TRAME) {
if (lp > 3 * SAMPLES_PER_TRAME)
{
bitn = 7; bitn = 7;
c = 0; c = 0;
lp = 0; lp = 0;
@ -68,9 +66,9 @@ 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) {
{
#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));
@ -78,8 +76,7 @@ main ()
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