From: Arnie97 Date: Fri, 26 Jan 2018 17:09:56 +0000 (+0800) Subject: hf mf eset: reuse mfEmlSetMem(). X-Git-Tag: v3.1.0~79^2~1 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/36545f0a5617d71b06e6d5773802fcf33ed5525a hf mf eset: reuse mfEmlSetMem(). --- diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index d0320148..ddfb1c02 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1685,10 +1685,7 @@ int CmdHF14AMfESet(const char *Cmd) } // 1 - blocks count - UsbCommand c = {CMD_MIFARE_EML_MEMSET, {blockNo, 1, 0}}; - memcpy(c.d.asBytes, memBlock, 16); - SendCommand(&c); - return 0; + return mfEmlSetMem(memBlock, blockNo, 1); }