From 035e2701a507065cfb2b49ed191ef436d6991076 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Thu, 19 Aug 2021 17:22:57 +0300 Subject: [PATCH] iso file id create application --- client/src/cmdhfmfdes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index f6c56253c..13bae16f1 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -2412,7 +2412,7 @@ static int CmdHF14ADesCreateApp(const char *Cmd) { datalen = 5; if (fileidpresent || (data[4] & 0x20) != 0) { - Uint2byteToMemBe(&data[5], fileid); + Uint2byteToMemLe(&data[5], fileid); data[4] |= 0x20; // set bit FileID in the ks2 memcpy(&data[7], dfname, dfnamelen); datalen = 7 + dfnamelen; @@ -2427,7 +2427,7 @@ static int CmdHF14ADesCreateApp(const char *Cmd) { PrintAndLogEx(INFO, "Key Set 2 0x%02X", data[4]); PrintAndLogEx(INFO, "ISO file ID %s", (data[4] & 0x20) ? "enabled" : "disabled"); if ((data[4] & 0x20)) { - PrintAndLogEx(INFO, "FID 0x%04x", MemBeToUint2byte(&data[5])); + PrintAndLogEx(INFO, "ISO file ID 0x%04x", MemLeToUint2byte(&data[5])); PrintAndLogEx(INFO, "DF Name[%02zu] %s\n", strnlen((char *)&data[7], 16), (char *)&data[7]); } PrintKeySettings(data[3], data[4], true, true);