FIX: 'dumptoemul.lua' doesn't add the last newline in generated eml file.

FIX:  'dumptoemul-mfu.lua' doesn't add the last newline in generated eml file.
FIX:  'dumptoemul-mfu.lua' correctly gets the UID from bin file,  previously took wrong data.
This commit is contained in:
iceman1001 2017-07-11 19:37:59 +02:00
commit ed54dc8e17
2 changed files with 15 additions and 11 deletions

View file

@ -68,10 +68,9 @@ local function convert_to_emulform(hexdata)
end
local ascii,i = "";
for i = 1, string.len(hexdata),32 do
ascii = ascii ..string.sub(hexdata,i,i+31).."\n"
ascii = ascii..string.sub(hexdata,i,i+31).."\n"
end
return string.sub(ascii,1,-1)
return string.sub(ascii, 1, -2)
end
local function main(args)