FIX: introduced a bug in luascripts when adding the "safe ascii chars" to ConvertHexToAscii. Now its optional.

This commit is contained in:
iceman1001 2017-03-09 10:26:01 +01:00
commit b9534ca070
3 changed files with 16 additions and 12 deletions

View file

@ -71,7 +71,6 @@ end
-- @param usbpacket the data received from the device
function showdata(blockno, data)
local xorkey = '55AA55AA55AA55AA6262'
--local s = data.." | "..utils.ConvertHexToAscii(data).." | "
local s = data.." | "
local dex = ''
local rs
@ -86,7 +85,6 @@ function showdata(blockno, data)
end
dex = (dex..'%04X'):format(rs)
end
--s = s..dex.." | "..utils.ConvertHexToAscii(dex)
s = s..dex.." | "
print( (" %02d | %s"):format(blockno,s))
end