remove debug prints
This commit is contained in:
parent
6ee0711580
commit
5e41f774de
3
boot.py
3
boot.py
|
@ -15,9 +15,6 @@ def connect_to_wifi(ssid, password, timeout = 15):
|
||||||
wlan.connect(ssid, password)
|
wlan.connect(ssid, password)
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
while not wlan.isconnected():
|
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:
|
if time.time() - start_time > timeout:
|
||||||
print(f"failed to connect to {ssid} within {timeout} seconds")
|
print(f"failed to connect to {ssid} within {timeout} seconds")
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue