From 15d49e82852dcb9e52bd448ad56104444691db25 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 4 May 2016 10:35:10 +0200 Subject: [PATCH] CHG: NEDAP, changed back the preamble. With new parity check it has a decent detection. --- common/lfdemod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5