Closed floe closed 4 years ago
Thank you for your feedback and sorry for the late answer. I had no time to reproduce the issue yet. Looks strange for sure. I am wondering if that has to do with the options bit I removed with the last issue. When I started the library I always had this custom options bit set and everything worked fine with my cards. Latley there was a note, that this bit produced write errors to another card which didn't support this. Therefor I cleared the bit for writing and reading... Interesting. I am glad you found a working solution and reported it back. I will fix it in the next days.
I can confirm that it has to do with enabling the option flags bit. The supplied code fix is also working as intended.
Thank you for this excellent library! I've been testing this with a random ISO15963 card, and I found that I would always get the following output when reading the card:
Note the 0x2A - when I read the card with NFC TagInfo on a smartphone, all blocks show as 0x00000000. And it's noteworthy that byte 5 of the tag address is also 0x2A.
After a bit of digging and reading the ISO15693 spec, I think that this line (https://github.com/ATrappmann/PN5180-Library/blob/master/PN5180ISO15693.cpp#L131) should be
blockData[i] = resultPtr[i+1];
(instead of 2+i) - do you agree?