Skip to content

Commit ac0ae47

Browse files
committed
fix blocking when tag is on the reader for some time, fix was taken from calvinzirk/pi-rc522
1 parent 9d9103e commit ac0ae47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pirc522/rfid.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@ def wait_for_tag(self):
395395
# wait for it
396396
waiting = True
397397
while waiting:
398+
self.init()
399+
#self.irq.clear()
400+
self.dev_write(0x04, 0x00)
401+
self.dev_write(0x02, 0xA0)
402+
398403
self.dev_write(0x09, 0x26)
399404
self.dev_write(0x01, 0x0C)
400405
self.dev_write(0x0D, 0x87)

0 commit comments

Comments
 (0)