while is back

This commit is contained in:
bton 2024-05-08 20:29:47 +02:00
parent 1a06580bd4
commit 949ef395dc

View file

@ -32,9 +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)
clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True }) while True:
time.sleep(0.75) clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True })
clf.close() time.sleep(0.75)
if __name__ == "__main__": if __name__ == "__main__":
start_nfc_normal() start_nfc_normal()