CHG: NEDAP, changed back the preamble. With new parity check it has a decent detection.

This commit is contained in:
iceman1001 2016-05-04 10:35:10 +02:00
parent 532bcd7145
commit 15d49e8285

View 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;
}