This commit is contained in:
EggMan20339 2024-05-09 22:13:00 -04:00
parent 5c4b97fb59
commit e800879339

View File

@ -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: