This commit is contained in:
iceman1001 2019-04-29 01:52:55 +02:00
commit 7cc6975e52
2 changed files with 3 additions and 3 deletions

View file

@ -91,8 +91,8 @@ end
-- @return nil, errormessage if unsuccessfull
local function getBlock(blockno)
local block, err
local cmd = Command:newMIX{cmd = cmds.CMD_MIFAREU_READBL, arg1 = blockno, data = 0}
block, err = getblockdata(cmd:sendMIX(false))
local c = Command:newMIX{cmd = cmds.CMD_MIFAREU_READBL, arg1 = blockno, data = 0}
block, err = getblockdata(c:sendMIX(false))
if not block then return oops(err) end
if #block < 32 then