]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: 'lf noralsy read' - new STT doesn't need so many bits.
authoriceman1001 <iceman@iuse.se>
Fri, 20 Jan 2017 21:20:47 +0000 (22:20 +0100)
committericeman1001 <iceman@iuse.se>
Fri, 20 Jan 2017 21:20:47 +0000 (22:20 +0100)
common/lfdemod.c

index 27f7bb063e27aa6a35a79fb129c77c2bec7af1d8..49c5877e0d36c45a0fb7c026c9cf341f44a27906 100644 (file)
@@ -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