pkourany / MFRC522_RFID_Library

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

Issue compiling this library #3

Closed frvalle closed 7 years ago

frvalle commented 7 years ago

Hi, I'm trying to use the library but get this issue:

screen shot 2017-03-01 at 4 31 38 pm

Thank you

pkourany commented 7 years ago

@frvalle, seems that even Arduino don't have their story straight on 16 vs 32 bit word. The library (which I did not author) uses the 16bit version of word. I'll need to replace all occurrences of word with the more specific uint16_t type which is platform independent. Stay tuned.

mathis89 commented 7 years ago

Hey, same problem here. I would really appreciate if you could fix it :)

frvalle commented 7 years ago

Hi,

By far I am not expert on this subject, but had the urgency of make it work.

I went to MFRC522.h, then to the line typedef uint16_t word; and changed the 16 to 32 and the library compiled and worked

Hope that works for you

pkourany commented 7 years ago

@frvalle, thanks for the test! Oddly, word is only used in one place in the code! I'll be posting a fix later today.

mathis89 commented 7 years ago

Thank you for the quick answer! :-)

pkourany commented 7 years ago

Just posted the updated library. Thanks!