mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Merge pull request #214 from jacopo-j/master
Fix syntax errors with Calypso Lua script & 14443b Lua lib
This commit is contained in:
commit
23d1d74482
2 changed files with 3 additions and 3 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue