firsttris / mfrc522-rpi

:key: Control your MFRC522 RFID Module with your Raspberry-pi and JavaScript
MIT License
118 stars 35 forks source link

Race condition(?) on a mifare ISO/IEC 14443-4 card #25

Open crimson589 opened 3 years ago

crimson589 commented 3 years ago

I'm using this to read mifare classic 1k card and there haven't been any issues. I was recently given a different type of mifare card and at first it looked liked it wasn't being read by the reader but after debugging the findCard() function at index.js it worked?

If i debug around Line 278, nothing happens the response is empty, however if I debug before that and wait just a few milliseconds to a second then I get a response and I successfully get the UID.

So am I right that there is a race condition happening somewhere? it's weird that if I debug the code I get a response but nothing if I don't.