Fix loop bug when publishing data 🐛
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
parra 2024-01-20 13:05:22 +01:00
parent c61718f811
commit 32b2ee190f

View file

@ -101,7 +101,8 @@ def main():
reset_variables() reset_variables()
if PING_URL: if PING_URL:
urllib.request.urlopen(PING_URL).read() urllib.request.urlopen(PING_URL).read()
break print("Done.")
return 0
except (btle.BTLEDisconnectError, IOError): except (btle.BTLEDisconnectError, IOError):
print("Disconnected :(") print("Disconnected :(")