From bac1cfb5b5fda889ca118c3da08acc8e02730c90 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Thu, 19 Aug 2021 17:17:32 +0300 Subject: [PATCH] create files iso file id byte order fix --- client/src/cmdhfmfdes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 6dab86454..f6c56253c 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -3344,8 +3344,7 @@ static int DesfireCreateFileParameters( *datalen = 1; if (isofileid > 0) { - data[1] = (isofileid >> 8) & 0xff; - data[2] = isofileid & 0xff; + Uint2byteToMemLe(&data[1], isofileid); *datalen += 2; }