Checked with a real tag and the error is correct. Also fixed a small error which let the tag still go out of bound.

This commit is contained in:
Federico Cerutti
2018-11-10 09:58:01 +01:00
committed by Thorsten Bosbach
parent b0f40ebc9a
commit be48e0b751
@@ -98,9 +98,9 @@ uint16_t TITagitstandardAppProcess(uint8_t* FrameBuf, uint16_t FrameBytes)
else
PageAddress = FrameBuf[2];
if (PageAddress > NUMBER_OF_SECTORS) { /* the reader is requesting a sector out of bound */
if (PageAddress >= NUMBER_OF_SECTORS) { /* the reader is requesting a sector out of bound */
FrameBuf[0] = ISO15693_RES_FLAG_ERROR;
FrameBuf[1] = ISO15693_RES_ERR_BLK_NOT_AVL; // Is this enough?
FrameBuf[1] = ISO15693_RES_ERR_BLK_NOT_AVL; /* real TiTag standard reply with this error */
ResponseByteCount = 2;
break;
}