From: iceman1001 Date: Wed, 4 May 2016 08:35:10 +0000 (+0200) Subject: CHG: NEDAP, changed back the preamble. With new parity check it has a decent detec... X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/15d49e82852dcb9e52bd448ad56104444691db25 CHG: NEDAP, changed back the preamble. With new parity check it has a decent detection. --- diff --git a/common/lfdemod.c b/common/lfdemod.c index 24336160..f797911c 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -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; }