Be a bit more aggressive about rejecting noise in the space periods.
This commit is contained in:
parent
f6bdb61b13
commit
5781e6ab96
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue