CHG: minor modification to "hf mf csetblk" The usuage of UID array is not needed.

This commit is contained in:
iceman1001 2015-02-16 19:01:52 +01:00
parent 5b3811fc0e
commit 3a72fdf5b0

View file

@ -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;