FIX: basic fixes for lua reader14a, reader14b, reader15

ADD: utils got iso15693 crc support
This commit is contained in:
iceman1001 committed 2018-11-30 01:41:39 +01:00
1 parent ccb0cd23f5
commit a5898158c5
5 files changed
+135 -175

No files matched your search

+13 -1
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)