diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-16 08:50:59 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-16 23:11:35 +0100 |
commit | 3d5542944339dda7da74b1fdf3f08a28c834ad17 (patch) | |
tree | bde102f3af24b77635d2fff146412528f30376cf | |
parent | 697ae5e2cac9d4be13a1e140a04e4873d96f3325 (diff) |
util/spkmodem_recv: Rename variable for clarity
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c index 702ea394..0e98d884 100644 --- a/util/spkmodem_recv/spkmodem-recv.c +++ b/util/spkmodem_recv/spkmodem-recv.c @@ -31,7 +31,7 @@ void read_sample(void); int main(int argc, char *argv[]) { - int bitn = 7; + int ascii_bit = 7; char ascii = 0; int i; int llp = 0; @@ -40,7 +40,7 @@ main(int argc, char *argv[]) while (!feof(stdin)) { if (lp > 3 * SAMPLES_PER_FRAME) { - bitn = 7; + ascii_bit = 7; ascii = 0; lp = 0; llp++; @@ -58,15 +58,15 @@ main(int argc, char *argv[]) ftell(stdin) - sizeof(frame)); #endif if (f1 < FREQ_DATA_THRESHOLD) - ascii |= (1 << bitn); - bitn--; - if (bitn < 0) { + ascii |= (1 << ascii_bit); + ascii_bit--; + if (ascii_bit < 0) { #if DEBUG printf("<%c, %x>", ascii, ascii); #else printf("%c", ascii); #endif - bitn = 7; + ascii_bit = 7; ascii = 0; } lp = 0; |