FIX: basic fixes for lua reader14a, reader14b, reader15

ADD: utils got iso15693 crc support
This commit is contained in:
iceman1001 2018-11-30 01:41:39 +01:00
commit a5898158c5
5 changed files with 135 additions and 175 deletions

View file

@ -109,7 +109,19 @@ local Utils =
end
return nil
end,
----ISO15693 CRC
Crc15 = function(s)
if s == nil then return nil end
if #s == 0 then return nil end
if type(s) == 'string' then
local utils = require('utils')
return utils.ConvertAsciiToHex(
core.iso15693_crc(s)
)
end
return nil
end,
------------ CRC-8 Legic checksums
-- Takes a hex string and calculates a crc8
Crc8Legic = function(s)