bye bye while
This commit is contained in:
parent
1b67b75b2d
commit
1a06580bd4
1 changed files with 4 additions and 5 deletions
|
@ -32,10 +32,9 @@ def start_nfc_normal():
|
||||||
device = get_reader()
|
device = get_reader()
|
||||||
clf = nfc.ContactlessFrontend(device)
|
clf = nfc.ContactlessFrontend(device)
|
||||||
clf.open(device)
|
clf.open(device)
|
||||||
while True:
|
|
||||||
clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True })
|
clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True })
|
||||||
time.sleep(0.75)
|
time.sleep(0.75)
|
||||||
|
clf.close()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
start_nfc_normal()
|
start_nfc_normal()
|
||||||
|
|
Loading…
Reference in a new issue