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 committed 2016-05-02 21:21:43 +02:00
1 parent d34a0b0cc7
commit c71f4da9bc
4 files changed
+84 -19

No files matched your search

+1 -1
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