mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fix NIL
This commit is contained in:
parent
17bce5fb5a
commit
0bfb6cd625
1 changed files with 2 additions and 4 deletions
|
@ -115,8 +115,7 @@ local function main(args)
|
||||||
|
|
||||||
local dumpdata = readdump(infile)
|
local dumpdata = readdump(infile)
|
||||||
-- The hex-data is now in ascii-format,
|
-- The hex-data is now in ascii-format,
|
||||||
if dumpdata == NIL then return oops('Dumpfle not loaded') end
|
if dumpdata == nil then return oops('Dumpfle not loaded') end
|
||||||
|
|
||||||
|
|
||||||
-- But first, check the uid
|
-- But first, check the uid
|
||||||
local uid = string.sub(dumpdata, 1, 8)
|
local uid = string.sub(dumpdata, 1, 8)
|
||||||
|
@ -124,8 +123,7 @@ local function main(args)
|
||||||
|
|
||||||
-- Format some linebreaks
|
-- Format some linebreaks
|
||||||
dumpdata = convert_to_emulform(dumpdata)
|
dumpdata = convert_to_emulform(dumpdata)
|
||||||
if dumpdata == NIL then return oops('Dumpfle not loaded') end
|
if dumpdata == nil then return oops('Dumpfle not loaded') end
|
||||||
|
|
||||||
|
|
||||||
local outfile = io.open(output, 'w')
|
local outfile = io.open(output, 'w')
|
||||||
if outfile == nil then
|
if outfile == nil then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue