return to normal

This commit is contained in:
bton 2024-04-17 20:57:02 +02:00
parent 5235984ab9
commit b01fead578

View file

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