From 949ef395dc422812c954082c0cf3feb75fc7981c Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 8 May 2024 20:29:47 +0200 Subject: [PATCH] while is back --- NFC_Reader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NFC_Reader.py b/NFC_Reader.py index dd642c5..4b046c3 100644 --- a/NFC_Reader.py +++ b/NFC_Reader.py @@ -32,9 +32,9 @@ def start_nfc_normal(): device = get_reader() clf = nfc.ContactlessFrontend(device) clf.open(device) - clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True }) - time.sleep(0.75) - clf.close() + while True: + clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True }) + time.sleep(0.75) if __name__ == "__main__": start_nfc_normal()