From 0c71b6cc32e4fa9ab7df8abfccb5bd73b7d91d8c Mon Sep 17 00:00:00 2001 From: mwalker33 <51802811+mwalker33@users.noreply.github.com> Date: Wed, 19 May 2021 20:57:06 +1000 Subject: [PATCH] Update cmdhfmfdes.c use defines for command 0xc4 --- client/src/cmdhfmfdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 405e05508..c16b90af9 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -1260,7 +1260,7 @@ static int mifare_desfire_change_key(uint8_t key_no, uint8_t *new_key, uint8_t n // C4 01 A0B08090E0F0C0D02030001060704050 03 // 19 bytes //uint8_t csPkt[30] = {0x00}; - csPkt[0] = 0xC4; + csPkt[0] = MFDES_CHANGE_KEY; memcpy(&csPkt[1], data, 18); desfire_crc32(csPkt, 19, data + 1 + cmdcnt);