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.")
|
print("User Verification required.")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def read_nfc_tag():
|
|
||||||
clf = None
|
clf = None
|
||||||
|
def read_nfc_tag():
|
||||||
try:
|
try:
|
||||||
|
import nfc
|
||||||
clf = nfc.ContactlessFrontend('usb')
|
clf = nfc.ContactlessFrontend('usb')
|
||||||
tag = clf.connect(rdwr={'on-connect': lambda tag: False})
|
tag = clf.connect(rdwr={'on-connect': lambda tag: False})
|
||||||
nfc = True
|
nfc = True
|
||||||
|
Loading…
Reference in New Issue
Block a user