]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - common/lfdemod.c
split fdx-b demod to its own file
[proxmark3-svn] / common / lfdemod.c
index 8307a89088f57c5e468665c602dea7effcc0e984..eb84203e040b0f83f3d6b162dcadc0562aa13f24 100644 (file)
@@ -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;
 }
 
Impressum, Datenschutz