From 5781e6ab96083e772c9255d1c7304f1b68411c20 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sun, 20 Mar 2016 20:49:30 +0000 Subject: [PATCH] Be a bit more aggressive about rejecting noise in the space periods. --- demod_2400.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demod_2400.c b/demod_2400.c index bfc8504..e1b2096 100644 --- a/demod_2400.c +++ b/demod_2400.c @@ -668,7 +668,7 @@ void demodulate2400AC(struct mag_buf *mag) noisy_bits <<= 1; // check for excessive noise in the quiet period - if (m[sample+2] >= signal_threshold) { + if (m[sample+2] >= noise_threshold) { //fprintf(stderr, "bit %u was not quiet (%u > %u)\n", bit, m[sample+2], signal_threshold); noisy_bits |= 1; continue;