mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 10:12:04 +02:00
util/spkmodem_recv: Remove unused variable: pos
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
signed short frame[2 * SAMPLES_PER_FRAME];
|
signed short frame[2 * SAMPLES_PER_FRAME];
|
||||||
signed short pulse[2 * SAMPLES_PER_FRAME];
|
signed short pulse[2 * SAMPLES_PER_FRAME];
|
||||||
int ringpos = 0;
|
int ringpos = 0;
|
||||||
int pos, f1, f2;
|
int f1, f2;
|
||||||
int amplitude = 0;
|
int amplitude = 0;
|
||||||
int lp = 0;
|
int lp = 0;
|
||||||
int ascii_bit = 7;
|
int ascii_bit = 7;
|
||||||
@@ -88,7 +88,6 @@ fetch_sample(void)
|
|||||||
|
|
||||||
if (abs(frame[ringpos]) > THRESHOLD) { /* rising/falling edge(pulse) */
|
if (abs(frame[ringpos]) > THRESHOLD) { /* rising/falling edge(pulse) */
|
||||||
pulse[ringpos] = 1;
|
pulse[ringpos] = 1;
|
||||||
pos = !pos;
|
|
||||||
f2++;
|
f2++;
|
||||||
} else {
|
} else {
|
||||||
pulse[ringpos] = 0;
|
pulse[ringpos] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user