]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: "abort trap 6" error when runing the tnp3sim.lua script was because the CMD_MIF...
authoriceman1001 <iceman@iuse.se>
Sat, 17 Oct 2015 12:35:04 +0000 (14:35 +0200)
committericeman1001 <iceman@iuse.se>
Sat, 17 Oct 2015 12:35:04 +0000 (14:35 +0200)
client/scripts/tnp3sim.lua

index b6821606ca35ce5352c0d11826b42c0b902478ab..11b268dd04ba94497e850c1aa9321575b49f37d6 100644 (file)
@@ -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
Impressum, Datenschutz