From 0a9dd2931b92cbb584e824af5df204818766269d Mon Sep 17 00:00:00 2001 From: EggMan20339 <99349302+EggMan20339@users.noreply.github.com> Date: Thu, 9 May 2024 21:21:11 -0400 Subject: [PATCH] nfc test main --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.py b/main.py index 1e3ea91..f4607f5 100644 --- a/main.py +++ b/main.py @@ -46,6 +46,7 @@ from getpass import getpass import sys import ctypes from fido2.ctap2 import Ctap2 +import nfc config = configparser.ConfigParser() @@ -104,6 +105,13 @@ class CliInteraction(UserInteraction): print("User Verification required.") return True +try: + clf = nfc.ContactlessFrontend('usb') # Ensure this matches your connection + print("NFC reader initialized.") +except Exception as e: + print("Failed to initialize NFC reader:", e) + + while True: