diff --git a/main.py b/main.py index a387ea7..e9de92f 100644 --- a/main.py +++ b/main.py @@ -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: