mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
fix destron clone command
This commit is contained in:
parent
2ee9ea0ef3
commit
25195b3197
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ static int CmdDestronClone(const char *Cmd) {
|
||||||
|
|
||||||
uint8_t data_ex[12 + 24] = {0}; // ManchesterEncode need extra room
|
uint8_t data_ex[12 + 24] = {0}; // ManchesterEncode need extra room
|
||||||
for (int i=0; i < datalen; i++) {
|
for (int i=0; i < datalen; i++) {
|
||||||
data_ex[i + 1] = data [i] | (oddparity8(data[i]) << 7);
|
data_ex[i + 1] = ~data [i] | (evenparity8(data[i]) << 7);
|
||||||
}
|
}
|
||||||
for (int i=0; i < 3; i++) {
|
for (int i=0; i < 3; i++) {
|
||||||
blocks[i+1] = manchesterEncode2Bytes((data_ex[i*2]<<8)+data_ex[i*2+1]);
|
blocks[i+1] = manchesterEncode2Bytes((data_ex[i*2]<<8)+data_ex[i*2+1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue