util/spkmodem_recv: Rename variable for clarity

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-16 08:50:59 +01:00
parent 697ae5e2ca
commit 3d55429443
1 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ void read_sample(void);
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
int bitn = 7; int ascii_bit = 7;
char ascii = 0; char ascii = 0;
int i; int i;
int llp = 0; int llp = 0;
@ -40,7 +40,7 @@ main(int argc, char *argv[])
while (!feof(stdin)) { while (!feof(stdin)) {
if (lp > 3 * SAMPLES_PER_FRAME) { if (lp > 3 * SAMPLES_PER_FRAME) {
bitn = 7; ascii_bit = 7;
ascii = 0; ascii = 0;
lp = 0; lp = 0;
llp++; llp++;
@ -58,15 +58,15 @@ main(int argc, char *argv[])
ftell(stdin) - sizeof(frame)); ftell(stdin) - sizeof(frame));
#endif #endif
if (f1 < FREQ_DATA_THRESHOLD) if (f1 < FREQ_DATA_THRESHOLD)
ascii |= (1 << bitn); ascii |= (1 << ascii_bit);
bitn--; ascii_bit--;
if (bitn < 0) { if (ascii_bit < 0) {
#if DEBUG #if DEBUG
printf("<%c, %x>", ascii, ascii); printf("<%c, %x>", ascii, ascii);
#else #else
printf("%c", ascii); printf("%c", ascii);
#endif #endif
bitn = 7; ascii_bit = 7;
ascii = 0; ascii = 0;
} }
lp = 0; lp = 0;