X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/946a84c35be79de8852d2c294de22f456f42a1ae..4db6f3bbb9b589f62bdaa8d30be0dc6cef3dac3f:/common/lfdemod.c 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; }