ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
411 stars 150 forks source link

Fixed UID to be four bytes long #50

Open florath opened 5 years ago

florath commented 5 years ago

The documentation is clear about the length of the UID: 10.2 4-byte UID Operation

The library currently return a fife byte UID from the anticol() method. (The fifth byte is the XOR checksum of the first four.)

This patch fixes this problem: only four bytes are returned.