X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ab7fdfcbed90cb96f281b13c079741df099ce6d2..ba52aac40e399e8ae7b0e4eadbafb19b5b2a5a0e:/client/scripts/tnp3sim.lua diff --git a/client/scripts/tnp3sim.lua b/client/scripts/tnp3sim.lua index 4e10eb75..fa9d1c22 100644 --- a/client/scripts/tnp3sim.lua +++ b/client/scripts/tnp3sim.lua @@ -30,17 +30,6 @@ local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds local DEBUG = false -- the debug flag local RANDOM = '20436F707972696768742028432920323031302041637469766973696F6E2E20416C6C205269676874732052657365727665642E20' -local band = bit32.band -local bor = bit32.bor -local lshift = bit32.lshift -local rshift = bit32.rshift -local byte = string.byte -local char = string.char -local sub = string.sub -local format = string.format - - - local band = bit32.band local bor = bit32.bor local lshift = bit32.lshift @@ -71,6 +60,7 @@ end -- This is only meant to be used when errors occur function oops(err) print("ERROR: ",err) + return nil,err end --- -- Usage help