From f14c9bf915f883b5dfa8645dcaf1ded8d5978b90 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 17 Oct 2015 14:35:04 +0200 Subject: [PATCH] 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. --- client/scripts/tnp3sim.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/scripts/tnp3sim.lua b/client/scripts/tnp3sim.lua index b6821606..11b268dd 100644 --- a/client/scripts/tnp3sim.lua +++ b/client/scripts/tnp3sim.lua @@ -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 -- 2.39.5