pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 379 forks source link

Update MFRC630.py #144

Closed gijsio closed 3 years ago

gijsio commented 3 years ago

Fix for https://forum.pycom.io/topic/6981/pyscan-nfc-rfid-reading-issue/

Decoding a NFC card would previously return all 0's because of this bug. Instead of returning the data, we would return the length, which would make the following function calls print all 0's instead of the decoded data.

I was not able to test this personally because of a lack of decodable keycards

CLAassistant commented 3 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.