From 5c4b97fb596d41f1f37932efcf9b0f1bcbe8b196 Mon Sep 17 00:00:00 2001 From: EggMan20339 <99349302+EggMan20339@users.noreply.github.com> Date: Thu, 9 May 2024 22:02:50 -0400 Subject: [PATCH] more nfc --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: