Merge pull request #214 from jacopo-j/master

Fix syntax errors with Calypso Lua script & 14443b Lua lib
This commit is contained in:
Iceman 2019-06-23 14:09:17 +02:00 committed by GitHub
commit 23d1d74482
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -112,7 +112,7 @@ end
-- turns on the HF field. -- turns on the HF field.
local function connect14443b() local function connect14443b()
local c = Command:newMIX{cmd = cmds.CMD_ISO_14443B_COMMAND, arg1 = ISO14B_COMMAND.ISO14B_CONNECT} local c = Command:newMIX{cmd = cmds.CMD_ISO_14443B_COMMAND, arg1 = ISO14B_COMMAND.ISO14B_CONNECT}
return c.sendMIX(true) return c:sendMIX(true)
end end
--- ---
-- Sends an instruction to do nothing, only disconnect -- Sends an instruction to do nothing, only disconnect
@ -120,7 +120,7 @@ local function disconnect14443b()
local c = Command:newMIX{cmd = cmds.CMD_ISO_14443B_COMMAND, arg1 = ISO14B_COMMAND.ISO14B_DISCONNECT} local c = Command:newMIX{cmd = cmds.CMD_ISO_14443B_COMMAND, arg1 = ISO14B_COMMAND.ISO14B_DISCONNECT}
-- We can ignore the response here, no ACK is returned for this command -- We can ignore the response here, no ACK is returned for this command
-- Check /armsrc/iso14443b.c, ReaderIso14443b() for details -- Check /armsrc/iso14443b.c, ReaderIso14443b() for details
return c.sendMIX(true) return c:sendMIX(true)
end end
local library = { local library = {

View file

@ -68,7 +68,7 @@ local function help()
print(desc) print(desc)
print('Example usage') print('Example usage')
print(example) print(example)
print(usage)) print(usage)
end end
-- --
-- helper function, give current count of items in lua-table. -- helper function, give current count of items in lua-table.