From 7fe12d4d1b310a354d1c0d11d0d26ea0fc17e6fe Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 14 Dec 2023 23:39:21 +0100 Subject: [PATCH] payload should not be larger than 488 bytes, so we can use MIX instead --- client/src/mifare/gen4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/mifare/gen4.c b/client/src/mifare/gen4.c index b01085671..f3a135b1d 100644 --- a/client/src/mifare/gen4.c +++ b/client/src/mifare/gen4.c @@ -58,7 +58,7 @@ static int mfG4ExCommand(uint8_t cmd, uint8_t *pwd, uint8_t *data, size_t datale int resplen = 0; clearCommandBuffer(); - SendCommandOLD(CMD_HF_ISO14443A_READER, ISO14A_CONNECT | ISO14A_RAW | ISO14A_NO_RATS | ISO14A_APPEND_CRC, 6 + datalen, 0, (uint8_t *)&payload, 6 + datalen); + SendCommandMIX(CMD_HF_ISO14443A_READER, ISO14A_CONNECT | ISO14A_RAW | ISO14A_NO_RATS | ISO14A_APPEND_CRC, 6 + datalen, 0, (uint8_t *)&payload, 6 + datalen); PacketResponseNG resp; if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {