Skip to content

Commit 8c6cd1d

Browse files
authored
Merge pull request #4 from VVESTM/#3
Come back to ST recommended sector size.
2 parents 6488d62 + d2041aa commit 8c6cd1d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib_nfctype2pcd.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@
5353
/* Size */
5454
#define PCDNFCT2_READ_SIZE 16
5555
#define PCDNFCT2_READ_SIZE_BUFFER 18
56-
#define PCDNFCT2_SECTOR_SIZE 256 //1024
56+
#ifndef PCDNFCT2_SECTOR_SIZE
57+
// if not defined at application level, let's use 1024 for wider compatibility
58+
// it can be reduced to lower values, e.g. 256, but with restrictions :
59+
// issue on second sector read
60+
#define PCDNFCT2_SECTOR_SIZE 1024
61+
#endif
5762

5863
/* Mask */
5964
#define PCDNFCT2_READ_MSK 0xF0

0 commit comments

Comments
 (0)