diff options
Diffstat (limited to 'util/spkmodem_recv/spkmodem-recv.c')
-rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c index 0614d103..2f2ff684 100644 --- a/util/spkmodem_recv/spkmodem-recv.c +++ b/util/spkmodem_recv/spkmodem-recv.c @@ -22,7 +22,6 @@ #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; @@ -76,6 +75,7 @@ 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)]; |