]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - common/lfdemod.c
CHG: 'lf noralsy read' - new STT doesn't need so many bits.
[proxmark3-svn] / common / lfdemod.c
index 8b951dc86abdb5464d4b8cc44535ae038bac4bec..49c5877e0d36c45a0fb7c026c9cf341f44a27906 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);
@@ -710,7 +710,7 @@ int Visa2kDemod_AM(uint8_t *dest, size_t *size) {
 // by iceman
 // find Noralsy preamble in already demoded data
 int NoralsyDemod_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[] = {1,0,1,1,1,0,1,1,0,0,0,0};
        uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);
Impressum, Datenschutz