mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 11:43:14 +08:00
CHG: NEDAP, changed back the preamble. With new parity check it has a decent detection.
This commit is contained in:
parent
532bcd7145
commit
15d49e8285
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue