more fixes for parity bits

This commit is contained in:
Thomas J L. Harkness 2018-04-03 12:56:37 +10:00
commit 83b63bea29

View file

@ -57,7 +57,7 @@ end
local function cardHex(i,f)
fac = bit32.lshift(f,16)
id = bit32.bor(i, fac)
stream=toBits(id,26)
stream=toBits(id,24)
--As the function defaults to even parity and returns a boolean,
--perform a 'not' function to get odd parity