From: iceman1001 Date: Fri, 20 Jan 2017 21:18:09 +0000 (+0100) Subject: CHG: 'lf visa2000 read' - with new STT, the need to find 192bits is not neeeded. X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/371a40bf3e96f9137cbec124c21e6c89e1f1d2e7 CHG: 'lf visa2000 read' - with new STT, the need to find 192bits is not neeeded. --- diff --git a/common/lfdemod.c b/common/lfdemod.c index 8b951dc8..27f7bb06 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -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);