]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: 'lf visa2000 read' - with new STT, the need to find 192bits is not neeeded.
authoriceman1001 <iceman@iuse.se>
Fri, 20 Jan 2017 21:18:09 +0000 (22:18 +0100)
committericeman1001 <iceman@iuse.se>
Fri, 20 Jan 2017 21:18:09 +0000 (22:18 +0100)
common/lfdemod.c

index 8b951dc86abdb5464d4b8cc44535ae038bac4bec..27f7bb063e27aa6a35a79fb129c77c2bec7af1d8 100644 (file)
@@ -698,7 +698,7 @@ int VikingDemod_AM(uint8_t *dest, size_t *size) {
 // by iceman
 // find Visa2000 preamble in already demoded data
 int Visa2kDemod_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[] = {0,1,0,1,0,1,1,0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,1,0};
        uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);
Impressum, Datenschutz