return to normal
This commit is contained in:
parent
5235984ab9
commit
b01fead578
1 changed files with 4 additions and 3 deletions
|
@ -22,10 +22,10 @@ def onTagSense(tag):
|
||||||
|
|
||||||
#try:
|
#try:
|
||||||
if response.json()["mode"] == "balance" or response.json()["mode"] == "message":
|
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
|
return True
|
||||||
#except:
|
except:
|
||||||
# None
|
None
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def start_nfc_normal():
|
def start_nfc_normal():
|
||||||
|
@ -35,6 +35,7 @@ def start_nfc_normal():
|
||||||
while True:
|
while True:
|
||||||
clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True })
|
clf.connect(rdwr={'on-connect': onTagSense, 'beep-on-connect': True })
|
||||||
time.sleep(0.75)
|
time.sleep(0.75)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
start_nfc_normal()
|
start_nfc_normal()
|
||||||
|
|
Loading…
Reference in a new issue