This commit is contained in:
EggMan20339 2024-05-09 22:02:50 -04:00
parent be315e85aa
commit 5c4b97fb59

View File

@ -105,10 +105,10 @@ class CliInteraction(UserInteraction):
print("User Verification required.")
return True
clf = nfc.ContactlessFrontend('usb')
def read_nfc_tag():
clf = None
try:
clf = nfc.ContactlessFrontend('usb')
tag = clf.connect(rdwr={'on-connect': lambda tag: False})
return tag.identifier if tag else None
except Exception as e: