more nfc
This commit is contained in:
parent
5c4b97fb59
commit
e800879339
4
main.py
4
main.py
@ -112,11 +112,11 @@ def read_nfc_tag():
|
||||
tag = clf.connect(rdwr={'on-connect': lambda tag: False})
|
||||
return tag.identifier if tag else None
|
||||
except Exception as e:
|
||||
print("NFC read error:", e)
|
||||
# print("NFC read error:", e)
|
||||
return None
|
||||
finally:
|
||||
if clf:
|
||||
# clf.close()
|
||||
clf.close()
|
||||
pass
|
||||
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user