From cad63e71628ff5c40b55dae4a1a54585326b8a78 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 22 Apr 2024 16:55:54 +0200 Subject: [PATCH] fix missing crc calcs --- armsrc/iso15693.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index 31b2fdf97..8dcd498bc 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -2946,9 +2946,6 @@ void SetTag15693Uid_v2(const uint8_t *uid) { {ISO15_REQ_DATARATE_HIGH, ISO15693_MAGIC_WRITE, 0x09, 0x40, uid[3], uid[2], uid[1], uid[0], 0x00, 0x00} }; - AddCrc15(cmd[0], 8); - AddCrc15(cmd[1], 8); - uint8_t buf[ISO15693_MAX_RESPONSE_LENGTH] = {0x00}; uint32_t start_time = 0; @@ -2958,6 +2955,8 @@ void SetTag15693Uid_v2(const uint8_t *uid) { int res = PM3_SUCCESS; for (int i = 0; i < 4; i++) { + + AddCrc15(cmd[i], 8); res = SendDataTag( cmd[i], sizeof(cmd[i]),