FIX: "abort trap 6" error when runing the tnp3sim.lua script was because the CMD_MIFARE_EML_MEMSET needs to sent the bytewitdh now with recent changes in code to deal with different sizes in emulatormemory. the third argument should be 16 instead of 0.
This commit is contained in:
@@ -220,11 +220,9 @@ local function LoadEmulator(blocks)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
cmd = Command:new{cmd = cmds.CMD_MIFARE_EML_MEMSET, arg1 = _ ,arg2 = 1,arg3 = 0, data = blockdata}
|
cmd = Command:new{cmd = cmds.CMD_MIFARE_EML_MEMSET, arg1 = _ ,arg2 = 1,arg3 = 16, data = blockdata}
|
||||||
local err = core.SendCommand(cmd:getBytes())
|
local err = core.SendCommand(cmd:getBytes())
|
||||||
if err then
|
if err then return err end
|
||||||
return err
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
io.write('\n')
|
io.write('\n')
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user