Minor "bug" (doesn't exhibit) and CRC question #312
Labels
bug 🐛
a not intended feature
need_confirmation 🧷
bug report must be confirmed by a second person, write if you have the same issue
This isn't a bug per se but it might become one (it's by code inspection)
On line 1711 on MFRC522.cpp there is a set of validBits to 8. It should be 0:
if you do this, the code in PCD_CommunicateWithPICC (line 436) which reads:
will attempt to set BitFramingReg[3] to 1. Now that bit is reserved so nothing bad actually happens!
Question about the same routine (PCD_CommunicateWithPICC). On line 501 there is a check to see if you have at least 2 bytes before calling CRC. Which, if you have exactly 2 bytes, will result in calling the CRC with zero data. I've no idea if this a bad idea... perhaps it is just fine and will return the CRC initialisation value. Just wondering :-)
The text was updated successfully, but these errors were encountered: