X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/56bbb25a4114df189f66dc8c14d233187e40b042..04da5cd92bdf5cbdcec127961e2499121003655e:/common/lfdemod.c diff --git a/common/lfdemod.c b/common/lfdemod.c index 3bc246a3..f797911c 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -768,11 +768,12 @@ int PyramiddemodFSK(uint8_t *dest, size_t *size) int NedapDemod(uint8_t *dest, size_t *size) { //make sure buffer has data 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}; uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx); if (errChk == 0) return -4; //preamble not found - //return start position return (int) startIdx; }