]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: minor modification to "hf mf csetblk" The usuage of UID array is not needed.
authoriceman1001 <iceman@iuse.se>
Mon, 16 Feb 2015 18:01:52 +0000 (19:01 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 16 Feb 2015 18:01:52 +0000 (19:01 +0100)
client/cmdhfmf.c

index d0852ea5bdf16fd05f69180fcbdd26125d0a8a8b..507e97fa56caf60a383f98f2beced8b3eb296cae 100644 (file)
@@ -1499,7 +1499,7 @@ int CmdHF14AMfCSetUID(const char *Cmd)
 \r
 int CmdHF14AMfCSetBlk(const char *Cmd)\r
 {\r
-       uint8_t uid[8] = {0x00};\r
+       //uint8_t uid[8] = {0x00};\r
        uint8_t memBlock[16] = {0x00};\r
        uint8_t blockNo = 0;\r
        int res;\r
@@ -1521,7 +1521,8 @@ int CmdHF14AMfCSetBlk(const char *Cmd)
 \r
        PrintAndLog("--block number:%2d data:%s", blockNo, sprint_hex(memBlock, 16));\r
 \r
-       res = mfCSetBlock(blockNo, memBlock, uid, 0, CSETBLOCK_SINGLE_OPER);\r
+       //res = mfCSetBlock(blockNo, memBlock, uid, 0, CSETBLOCK_SINGLE_OPER);\r
+       res = mfCSetBlock(blockNo, memBlock, NULL, 0, CSETBLOCK_SINGLE_OPER);\r
        if (res) {\r
                        PrintAndLog("Can't write block. error=%d", res);\r
                        return 1;\r
Impressum, Datenschutz