pkourany / MFRC522_RFID_Library

RC522 RFID library adapted for Spark
Other
50 stars 42 forks source link

Fails to complie in Particle Web IDE #7

Closed richardhawthorn closed 2 years ago

richardhawthorn commented 3 years ago

Hi there

When compiling this library in the Particle IDE it returns an error

"lib/MFRC522/MFRC522.cpp:1631:1: control reaches end of non-void function [-Werror=return-type]"

It looks like the function MIFARE_UnbrickUidSector is expected to return a value, but isn't doing so in some conditions.

Returning true at the end of this function (around line 1631 of MFRC522.cpp) looks like it should fix the problem.

pkourany commented 2 years ago

Merged the change. Thanks!