chg: 'hf mf chkkeys' - now uses NG

This commit is contained in:
iceman1001
2019-04-29 02:07:40 +02:00
parent 7cc6975e52
commit 7454a4dcf2
5 changed files with 16 additions and 8 deletions

View File

@@ -84,11 +84,11 @@ local function checkBlock(blockno, testkeys, keytype)
core.clearCommandBuffer()
print(("Testing block %d, keytype %d, with %d keys"):format(blockno, keytype, chunksize))
local c = Command:newMIX{cmd = cmds.CMD_MIFARE_CHKKEYS,
local c = Command:newNG{cmd = cmds.CMD_MIFARE_CHKKEYS,
arg1 = arg1,
arg3 = chunksize,
data = d1}
status, err = checkCommand(c:sendMIX(false, TIMEOUT))
status, err = checkCommand(c:sendNG(false, TIMEOUT))
if status then return status, blockno end
start = start + chunksize