CHG: increased the preamble

CHG:  from inverted to non-inverted. 2 of the forum samples is non-inverted.

Block 0:  00150080
This commit is contained in:
iceman1001 2016-05-02 21:21:43 +02:00
commit c71f4da9bc
4 changed files with 84 additions and 19 deletions

View file

@ -770,7 +770,7 @@ 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};
uint8_t preamble[] = {1,1,1,1,1,1,1,1,1,0,0,0,1};
uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);
if (errChk == 0) return -4; //preamble not found
//return start position