X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ab7fdfcbed90cb96f281b13c079741df099ce6d2..0de8e3874d6524379550a50a4d9c29faf2d239ea:/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