remove debug prints

This commit is contained in:
Jonathan Wonneberger 2024-07-17 22:52:23 +02:00
parent 6ee0711580
commit 5e41f774de
1 changed files with 0 additions and 3 deletions

View File

@ -15,9 +15,6 @@ def connect_to_wifi(ssid, password, timeout = 15):
wlan.connect(ssid, password)
start_time = time.time()
while not wlan.isconnected():
print("start: ", start_time)
print("time:", time.time())
print("condition: ", start_time - time.time() > timeout)
if time.time() - start_time > timeout:
print(f"failed to connect to {ssid} within {timeout} seconds")
return False