Skip to content

Commit b470642

Browse files
authored
Merge pull request ondryaso#49 from layereight/master
Fix blocking when tag is on the reader for some time
2 parents 09a4458 + ac0ae47 commit b470642

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
@@ -408,6 +408,11 @@ def wait_for_tag(self):
408408
# wait for it
409409
waiting = True
410410
while waiting:
411+
self.init()
412+
#self.irq.clear()
413+
self.dev_write(0x04, 0x00)
414+
self.dev_write(0x02, 0xA0)
415+
411416
self.dev_write(0x09, 0x26)
412417
self.dev_write(0x01, 0x0C)
413418
self.dev_write(0x0D, 0x87)

0 commit comments

Comments
 (0)