]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripts/lf_bulk_program.lua
fix for swapped parity bits
[proxmark3-svn] / client / scripts / lf_bulk_program.lua
index 4758c2036a02e736f625ea0d7f7a83418b8e6f62..274f7510abe0a9f956c673b57dbdc02a4ce9acbd 100644 (file)
@@ -61,8 +61,8 @@ 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 = evenparity(string.sub(stream,0,12)) and 1 or 0
-       low = not evenparity(string.sub(stream,13)) and 1 or 0
+       high = not evenparity(string.sub(stream,0,12)) and 1 or 0
+       low =  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))
 
Impressum, Datenschutz