From 3c775c06cce7b6e7c3798cbe11b18a8b72a1480c Mon Sep 17 00:00:00 2001 From: Federico Cerutti Date: Fri, 28 Dec 2018 17:10:02 +0100 Subject: [PATCH] Stupid me introduced a bug in Write_Single --- Firmware/Chameleon-Mini/Application/EM4233.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Chameleon-Mini/Application/EM4233.c b/Firmware/Chameleon-Mini/Application/EM4233.c index 8fc69c7..a2379a8 100644 --- a/Firmware/Chameleon-Mini/Application/EM4233.c +++ b/Firmware/Chameleon-Mini/Application/EM4233.c @@ -95,7 +95,7 @@ uint16_t EM4233_Write_Single(uint8_t* FrameBuf, uint16_t FrameBytes) { uint16_t ResponseByteCount = ISO15693_APP_NO_RESPONSE; uint8_t BlockAddress = *FrameInfo.Parameters; - uint8_t* Dataptr = BlockAddress + 0x01; /* Data to write begins on 2nd byte of the frame received by the reader */ + uint8_t* Dataptr = FrameInfo.Parameters + 0x01; /* Data to write begins on 2nd byte of the frame received by the reader */ uint8_t LockStatus = 0; if (FrameInfo.ParamLen != 5)