Remove code that stops wifi connect working

sammachin-gprs
Peter Roberts 2018-09-02 02:09:04 +01:00
parent ce36fadd3e
commit da7fa998db
1 changed files with 0 additions and 4 deletions

View File

@ -76,11 +76,7 @@ def connect_wifi(details, timeout, wait=False):
nic().connect(details['ssid'])
if wait:
wait_until = time.ticks_ms() + timeout * 1000
while not nic().isconnected():
#nic().update() # todo: do we need this?
if (time.ticks_ms() > wait_until):
raise OSError("Timeout while trying to connect to wifi")
sleep.sleep_ms(100)