FIX: the 14b crc was called wrong in LUA. You enter a hexstring already, and get a hexstring back.

This commit is contained in:
iceman1001 2016-02-25 17:51:02 +01:00
commit f6af1cf0ad
2 changed files with 12 additions and 14 deletions

View file

@ -75,9 +75,9 @@ local Utils =
if #s == 0 then return nil end
if type(s) == 'string' then
local utils = require('utils')
local ascii = utils.ConvertHexToAscii(s)
local hashed = core.iso14443b_crc(ascii)
return utils.ConvertAsciiToHex(hashed)
return utils.ConvertAsciiToHex(
core.iso14443b_crc(s)
)
end
return nil
end,