Be a bit more aggressive about rejecting noise in the space periods.

This commit is contained in:
Oliver Jowett 2016-03-20 20:49:30 +00:00
parent f6bdb61b13
commit 5781e6ab96

View file

@ -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;