From 19f563910763cb48035ad1abad43a3f0bfb2d113 Mon Sep 17 00:00:00 2001 From: Ave Date: Mon, 7 Sep 2020 22:38:11 +0300 Subject: [PATCH] hf mfu wrbl: Extend help text and do style pass --- client/src/cmdhfmfu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 524faa9ce..58dc9a300 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -123,7 +123,7 @@ static int usage_hf_mfu_wrbl(void) { PrintAndLogEx(NORMAL, "Usage: hf mfu wrbl b d k l\n"); PrintAndLogEx(NORMAL, "Options:"); PrintAndLogEx(NORMAL, " b : block to write"); - PrintAndLogEx(NORMAL, " d : block data - (8 hex symbols)"); + PrintAndLogEx(NORMAL, " d : block data - (8 or 32 hex symbols, 32 hex symbols will do a compatibility write)"); PrintAndLogEx(NORMAL, " k : (optional) key for authentication [UL-C 16bytes, EV1/NTAG 4bytes]"); PrintAndLogEx(NORMAL, " l : (optional) swap entered key's endianness"); PrintAndLogEx(NORMAL, ""); @@ -1580,9 +1580,7 @@ static int CmdHF14AMfUWrBl(const char *Cmd) { clearCommandBuffer(); if (datalen == 16) { SendCommandMIX(CMD_HF_MIFAREU_WRITEBL_COMPAT, blockNo, keytype, 0, cmddata, datalen); - } - else - { + } else { SendCommandMIX(CMD_HF_MIFAREU_WRITEBL, blockNo, keytype, 0, cmddata, datalen); } PacketResponseNG resp;