From: iceman1001 Date: Mon, 16 Feb 2015 18:01:52 +0000 (+0100) Subject: CHG: minor modification to "hf mf csetblk" The usuage of UID array is not needed. X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/3a72fdf5b0d1ed3e8c94556ff5e24aa20843636d CHG: minor modification to "hf mf csetblk" The usuage of UID array is not needed. --- 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;