From b01fead578801497954858710bf0e5a2ebf347cc Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 17 Apr 2024 20:57:02 +0200 Subject: [PATCH] return to normal --- NFC_Reader.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NFC_Reader.py b/NFC_Reader.py index a2d0331..fb3c671 100644 --- a/NFC_Reader.py +++ b/NFC_Reader.py @@ -22,10 +22,10 @@ def onTagSense(tag): #try: if response.json()["mode"] == "balance" or response.json()["mode"] == "message": - oled.balance(response.json()["username"], response.json()["balance"]) + #oled.balance(response.json()["username"], response.json()["balance"]) return True - #except: - # None + except: + None return False def start_nfc_normal(): @@ -35,6 +35,7 @@ def start_nfc_normal(): while True: clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True }) time.sleep(0.75) + if __name__ == "__main__": start_nfc_normal()