X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/86b8ecb56ed66e2b604703d4fe47efbc6300cc36..b2f565142ce739ff94a6f4c55d63a81ffed56759:/common/lfdemod.c?ds=inline diff --git a/common/lfdemod.c b/common/lfdemod.c index 8307a890..eb84203e 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -1703,6 +1703,8 @@ int FDXBdemodBI(uint8_t *dest, size_t *size) { uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx); if (errChk == 0) return -2; //preamble not found + if (*size != 128) return -3; //wrong size for fdxb + //return start position return (int)startIdx; }