summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_ISO15693Map.h
diff options
context:
space:
mode:
authorMartijn Coenen <martijn.coenen@nxp.com>2011-01-20 01:27:17 +0100
committerJeff Hamilton <jham@android.com>2011-02-25 06:44:34 +0900
commit4f3ef022906e5d3b763fbcfe81e3f5cd53976ab5 (patch)
treed5adf3aff71553e358a8674d313132063a1ba562 /src/phFriNfc_ISO15693Map.h
parenta6e012a748e70ab203655d4e1c0d0a77b6515fad (diff)
downloadexternal_libnfc-nxp-4f3ef022906e5d3b763fbcfe81e3f5cd53976ab5.zip
external_libnfc-nxp-4f3ef022906e5d3b763fbcfe81e3f5cd53976ab5.tar.gz
external_libnfc-nxp-4f3ef022906e5d3b763fbcfe81e3f5cd53976ab5.tar.bz2
Support formatting / makeReadOnly() of NDEF on ICODE.
Change-Id: I2a7a185ead5de8f2b165c81dcc8ab8fb46c1ddc0
Diffstat (limited to 'src/phFriNfc_ISO15693Map.h')
-rw-r--r--src/phFriNfc_ISO15693Map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phFriNfc_ISO15693Map.h b/src/phFriNfc_ISO15693Map.h
index f696019..596534a 100644
--- a/src/phFriNfc_ISO15693Map.h
+++ b/src/phFriNfc_ISO15693Map.h
@@ -41,7 +41,7 @@
/* Get the NDEF TLV VALUE field block and byte address */
#define ISO15693_GET_VALUE_FIELD_BLOCK_NO(blk, byte_addr, ndef_size) \
- (((byte_addr + 1 + ((ndef_size >= ISO15693_THREE_BYTE_LENGTH_ID) ? 3 : 1)) >= \
+ (((byte_addr + 1 + ((ndef_size >= ISO15693_THREE_BYTE_LENGTH_ID) ? 3 : 1)) > \
(ISO15693_BYTES_PER_BLOCK - 1)) ? (blk + 1) : blk)
#define ISO15693_GET_VALUE_FIELD_BYTE_NO(blk, byte_addr, ndef_size) \