X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/371a40bf3e96f9137cbec124c21e6c89e1f1d2e7..e99acd00cc0ef24aa685b86eb4623c397e082368:/common/lfdemod.c diff --git a/common/lfdemod.c b/common/lfdemod.c index 27f7bb06..49c5877e 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -710,7 +710,7 @@ int Visa2kDemod_AM(uint8_t *dest, size_t *size) { // by iceman // find Noralsy preamble in already demoded data int NoralsyDemod_AM(uint8_t *dest, size_t *size) { - if (*size < 96*2) return -1; //make sure buffer has data + if (*size < 96) return -1; //make sure buffer has data size_t startIdx = 0; uint8_t preamble[] = {1,0,1,1,1,0,1,1,0,0,0,0}; uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);