X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8d0a3e87d7d2350f4a05698a42f57625e460e5d6..d3a22c7dfa87bf5e21d228849a602194be4a0895:/common/lfdemod.c diff --git a/common/lfdemod.c b/common/lfdemod.c index 5ab5e03a..eb5a4d95 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -538,8 +538,6 @@ int fskdemod(uint8_t *dest, size_t size, uint8_t rfLen, uint8_t invert, uint8_t size = fsk_wave_demod(dest, size, fchigh, fclow); if ( size > 0 ) size = aggregate_bits(dest, size, rfLen, 192, invert, fchigh, fclow); - else - return -1; return size; } @@ -623,8 +621,8 @@ int IOdemodFSK(uint8_t *dest, size_t size) testMax = dest[idx]; } - //if not just noise - if (testMax < 170) return -2; + //if not, just noise + if (testMax < 20) return -2; // FSK demodulator size = fskdemod(dest, size, 64, 1, 10, 8); // RF/64 and invert