bye bye while

This commit is contained in:
bton 2024-05-08 18:03:19 +02:00
parent 1b67b75b2d
commit 1a06580bd4

View file

@ -32,10 +32,9 @@ def start_nfc_normal():
device = get_reader()
clf = nfc.ContactlessFrontend(device)
clf.open(device)
while True:
clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True })
time.sleep(0.75)
clf.close()
if __name__ == "__main__":
start_nfc_normal()