Skip to content

Commit ba4fefd

Browse files
committed
Fix blocking when tag is on the reader for some time
Taken from pi-rc522 PR#49: ondryaso#49
1 parent f3e528d commit ba4fefd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyrc522/rfid.py

+3
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ def wait_for_tag(self):
400400
# wait for it
401401
waiting = True
402402
while waiting:
403+
self.init()
404+
self.dev_write(0x04, 0x00)
405+
self.dev_write(0x02, 0xA0)
403406
self.dev_write(0x09, 0x26)
404407
self.dev_write(0x01, 0x0C)
405408
self.dev_write(0x0D, 0x87)

0 commit comments

Comments
 (0)