Skip to content

Commit d2041aa

Browse files
committed
Come back to ST recommended sector size.
Fix #3 Signed-off-by: Vincent Veron <[email protected]>
1 parent 6488d62 commit d2041aa

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)