From ea7ad8cbc69106fb8d7b11ce0a17cb36015492fd Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 29 Apr 2019 14:44:08 +0200 Subject: [PATCH] fixes to ndef --- client/scripts/ndef_dump.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/scripts/ndef_dump.lua b/client/scripts/ndef_dump.lua index da6b7d806..8218e414c 100644 --- a/client/scripts/ndef_dump.lua +++ b/client/scripts/ndef_dump.lua @@ -92,7 +92,7 @@ end local function getBlock(blockno) local block, err local c = Command:newMIX{cmd = cmds.CMD_MIFAREU_READBL, arg1 = blockno, data = 0} - block, err = getblockdata(c:scr(false)) + block, err = getblockdata(c:sendMIX(false)) if not block then return oops(err) end if #block < 32 then @@ -191,8 +191,8 @@ local function main( args) print('Manufacturer', info.manufacturer) print('Type ', info.name) - - core.ndefparse( t5tarea, true, blockData); + local ndefdata = table.concat(blockData, '', 5) + core.ndefparse(t5tarea, 1, ndefdata) for k,v in ipairs(blockData) do print(string.format('Block %02x: %02x %02x %02x %02x', k-1, string.byte(v, 1,4)))