X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/1b3c567df229f873ed93e0148c7781a2ee74f804..0de8e3874d6524379550a50a4d9c29faf2d239ea:/client/scripts/tnp3sim.lua?ds=sidebyside diff --git a/client/scripts/tnp3sim.lua b/client/scripts/tnp3sim.lua index 6d17a09b..fa9d1c22 100644 --- a/client/scripts/tnp3sim.lua +++ b/client/scripts/tnp3sim.lua @@ -60,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 @@ -198,8 +199,6 @@ local function ValidateCheckSums(blocks) io.write( ('TYPE 3 area 2: %04x = %04x -- %s\n'):format(crc,calc,isOk)) end -local function LoadEmulator(blocks) - local cmd local blockdata for _,b in pairs(blocks) do @@ -421,7 +420,7 @@ local function main(args) local level = blocks[13]:sub(27,28) print(('LEVEL : %d'):format( tonumber(level,16))) - --hälsa: 667 029b + --hälsa: 667 029b --local health = blocks[]:sub(); --print(('Health : %d'):format( tonumber(health,16))