mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-18 03:00:58 +08:00
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:
parent
d8a3b6c117
commit
f14c9bf915
1 changed files with 2 additions and 4 deletions
|
@ -220,11 +220,9 @@ local function LoadEmulator(blocks)
|
|||
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())
|
||||
if err then
|
||||
return err
|
||||
end
|
||||
if err then return err end
|
||||
end
|
||||
io.write('\n')
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue