mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 03:34:22 +08:00
chg: lua lib 14a, added disconnect support
This commit is contained in:
parent
bc6d9f4074
commit
5a6929c533
1 changed files with 10 additions and 0 deletions
|
@ -128,10 +128,20 @@ local function waitFor14443a()
|
|||
end
|
||||
return nil, "Aborted by user"
|
||||
end
|
||||
|
||||
-- Sends an instruction to do nothing, only disconnect
|
||||
local function disconnect14443a()
|
||||
local c = Command:newMIX{cmd = cmds.CMD_READER_ISO_14443a}
|
||||
-- We can ignore the response here, no ACK is returned for this command
|
||||
-- Check /armsrc/iso14443a.c, ReaderIso14443a() for details
|
||||
return c.sendMIX(true)
|
||||
end
|
||||
|
||||
local library = {
|
||||
read = read14443a,
|
||||
waitFor14443a = waitFor14443a,
|
||||
parse14443a = parse14443a,
|
||||
disconnect = disconnect14443a,
|
||||
ISO14A_COMMAND = ISO14A_COMMAND,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue