mxgxw / MFRC522-python

A small class to interface with the NFC reader Module MFRC522
GNU Lesser General Public License v3.0
521 stars 419 forks source link

MFRC522 stop working after few hours #21

Open mthomasson opened 8 years ago

mthomasson commented 8 years ago

Hi, And first of all, thank you for this program, that works well! I I just noticed that the reader stops readingt usually after a few hours in use, even if the program still run. Has anyone got some tips for solving this issue?

Cheers, Maxime

andalesas commented 8 years ago

I had the same problem and I just found then the MFRC522.py script crashes at line 282. The line 281 initiates a loop (while i<5:) passing i to buf.append(serNum[i]) but serNum is an array of 4 elements, so try to set while i<4 at line 281.

pvadam commented 6 years ago

Using spidev like in ondryaso/pi-rc522#20 solved the issue for me!