mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
Fix for bulk HID card programming and parity issues
This commit is contained in:
parent
83b63bea29
commit
24fe17e9e9
1 changed files with 3 additions and 2 deletions
|
@ -61,8 +61,9 @@ local function cardHex(i,f)
|
|||
|
||||
--As the function defaults to even parity and returns a boolean,
|
||||
--perform a 'not' function to get odd parity
|
||||
high = not evenparity(string.sub(stream,0,12)) and 1 or 0
|
||||
low = evenparity(string.sub(stream,13)) and 1 or 0
|
||||
high = evenparity(string.sub(stream,1,12)) and 1 or 0
|
||||
low = not evenparity(string.sub(stream,13)) and 1 or 0
|
||||
|
||||
bits = bit32.bor(bit32.lshift(id,1), low)
|
||||
bits = bit32.bor(bits, bit32.lshift(high,25))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue