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})
|
tag = clf.connect(rdwr={'on-connect': lambda tag: False})
|
||||||
return tag.identifier if tag else None
|
return tag.identifier if tag else None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("NFC read error:", e)
|
# print("NFC read error:", e)
|
||||||
return None
|
return None
|
||||||
finally:
|
finally:
|
||||||
if clf:
|
if clf:
|
||||||
# clf.close()
|
clf.close()
|
||||||
pass
|
pass
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user