more nfc
This commit is contained in:
parent
fdb0e045f8
commit
51cdc8d4e2
3
main.py
3
main.py
@ -110,9 +110,10 @@ class CliInteraction(UserInteraction):
|
||||
print("User Verification required.")
|
||||
return True
|
||||
|
||||
def read_nfc_tag():
|
||||
clf = None
|
||||
def read_nfc_tag():
|
||||
try:
|
||||
import nfc
|
||||
clf = nfc.ContactlessFrontend('usb')
|
||||
tag = clf.connect(rdwr={'on-connect': lambda tag: False})
|
||||
nfc = True
|
||||
|
Loading…
Reference in New Issue
Block a user