summaryrefslogtreecommitdiff
path: root/util/spkmodem_recv
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-16 14:11:28 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-16 23:11:35 +0100
commit50b35939ded374c4a387a0dd81ac48d92026a98d (patch)
treee614d4de509064ab1d9f25503964ed5cc6b4b193 /util/spkmodem_recv
parent14190de9e8fc58e370b9ffa05206b7ce5e377833 (diff)
util/spkmodem_recv: Make pulse variable global
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/spkmodem_recv')
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index 836363f0..be0aa27e 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -22,6 +22,7 @@
#define FLUSH_TIMEOUT 1
signed short frame[2 * SAMPLES_PER_FRAME];
+signed short pulse[2 * SAMPLES_PER_FRAME];
int f1, f2;
int lp = 0;
int ascii_bit = 7;
@@ -75,7 +76,6 @@ void
fetch_sample(void)
{
static int ringpos = 0;
- static signed short pulse[2 * SAMPLES_PER_FRAME];
f1 -= pulse[ringpos];
f1 += pulse[(ringpos + SAMPLES_PER_FRAME) % (2 * SAMPLES_PER_FRAME)];