projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
532bcd7
)
CHG: NEDAP, changed back the preamble. With new parity check it has a decent detec...
author
iceman1001
<iceman@iuse.se>
Wed, 4 May 2016 08:35:10 +0000
(10:35 +0200)
committer
iceman1001
<iceman@iuse.se>
Wed, 4 May 2016 08:35:10 +0000
(10:35 +0200)
common/lfdemod.c
patch
|
blob
|
blame
|
history
diff --git
a/common/lfdemod.c
b/common/lfdemod.c
index 24336160634104ae793420234fadbdb05754787b..f797911c36f7121e20f92f4ff4ed1d483cd82895 100644
(file)
--- 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;
}
Impressum
,
Datenschutz