]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
hf mf eset: reuse mfEmlSetMem().
authorArnie97 <arnie97@gmail.com>
Fri, 26 Jan 2018 17:09:56 +0000 (01:09 +0800)
committerArnie97 <arnie97@gmail.com>
Fri, 26 Jan 2018 17:09:56 +0000 (01:09 +0800)
client/cmdhfmf.c

index d0320148bf1ddec43d511c6787e7a4fe52b6f792..ddfb1c024f12ed79763149c8b17813cb7b7d653f 100644 (file)
@@ -1685,10 +1685,7 @@ int CmdHF14AMfESet(const char *Cmd)
        }\r
 \r
        //  1 - blocks count\r
        }\r
 \r
        //  1 - blocks count\r
-       UsbCommand c = {CMD_MIFARE_EML_MEMSET, {blockNo, 1, 0}};\r
-       memcpy(c.d.asBytes, memBlock, 16);\r
-       SendCommand(&c);\r
-       return 0;\r
+       return mfEmlSetMem(memBlock, blockNo, 1);\r
 }\r
 \r
 \r
 }\r
 \r
 \r
Impressum, Datenschutz