diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-16 13:30:55 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-16 23:11:35 +0100 |
commit | 63e43819b30c68c59b26c6b1d883545154bad987 (patch) | |
tree | 6b66e9b89c1608983f2083217e18587a9935ae5c /util/spkmodem_recv | |
parent | a0abcb9f53f805dc7200c81efe2fab14fd58c7e8 (diff) |
util/spkmodem_recv: Remove unused variable: pos
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/spkmodem_recv')
-rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c index 94a0069e..5f06b3b7 100644 --- a/util/spkmodem_recv/spkmodem-recv.c +++ b/util/spkmodem_recv/spkmodem-recv.c @@ -24,7 +24,7 @@ signed short frame[2 * SAMPLES_PER_FRAME]; signed short pulse[2 * SAMPLES_PER_FRAME]; int ringpos = 0; -int pos, f1, f2; +int f1, f2; int amplitude = 0; int lp = 0; int ascii_bit = 7; @@ -88,7 +88,6 @@ fetch_sample(void) if (abs(frame[ringpos]) > THRESHOLD) { /* rising/falling edge(pulse) */ pulse[ringpos] = 1; - pos = !pos; f2++; } else { pulse[ringpos] = 0; |