]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: NEDAP, changed back the preamble. With new parity check it has a decent detec...
authoriceman1001 <iceman@iuse.se>
Wed, 4 May 2016 08:35:10 +0000 (10:35 +0200)
committericeman1001 <iceman@iuse.se>
Wed, 4 May 2016 08:35:10 +0000 (10:35 +0200)
common/lfdemod.c

index 24336160634104ae793420234fadbdb05754787b..f797911c36f7121e20f92f4ff4ed1d483cd82895 100644 (file)
@@ -770,10 +770,10 @@ int NedapDemod(uint8_t *dest, size_t *size) {
        if (*size < 128) return -3;
 
        size_t startIdx = 0;
-       uint8_t preamble[] = {1,1,1,1,1,1,1,1,1,0,0,0,1};
+       //uint8_t preamble[] = {1,1,1,1,1,1,1,1,1,0,0,0,1};
+       uint8_t preamble[] = {1,1,1,1,1,1,1,1,1,0};
        uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);
        if (errChk == 0) return -4; //preamble not found
-       //return start position
        return (int) startIdx;
 }
 
Impressum, Datenschutz