From 3a72fdf5b0d1ed3e8c94556ff5e24aa20843636d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 16 Feb 2015 19:01:52 +0100 Subject: [PATCH] CHG: minor modification to "hf mf csetblk" The usuage of UID array is not needed. --- client/cmdhfmf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index d0852ea5..507e97fa 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1499,7 +1499,7 @@ int CmdHF14AMfCSetUID(const char *Cmd) int CmdHF14AMfCSetBlk(const char *Cmd) { - uint8_t uid[8] = {0x00}; + //uint8_t uid[8] = {0x00}; uint8_t memBlock[16] = {0x00}; uint8_t blockNo = 0; int res; @@ -1521,7 +1521,8 @@ int CmdHF14AMfCSetBlk(const char *Cmd) PrintAndLog("--block number:%2d data:%s", blockNo, sprint_hex(memBlock, 16)); - res = mfCSetBlock(blockNo, memBlock, uid, 0, CSETBLOCK_SINGLE_OPER); + //res = mfCSetBlock(blockNo, memBlock, uid, 0, CSETBLOCK_SINGLE_OPER); + res = mfCSetBlock(blockNo, memBlock, NULL, 0, CSETBLOCK_SINGLE_OPER); if (res) { PrintAndLog("Can't write block. error=%d", res); return 1; -- 2.39.5