logic error

This commit is contained in:
David Todd 2020-01-26 19:50:51 -06:00
parent e01d14d076
commit b8e082da13

View File

@ -49,9 +49,7 @@ if not STA_IF.isconnected():
for network in creds.WIFI_NETWORKS: for network in creds.WIFI_NETWORKS:
if STA_IF.isconnected(): if STA_IF.isconnected():
break break
connect(STA_IF, 'Standard', connect(STA_IF, 'Standard', network[0], network[1])
creds.WIFI_NETWORKS[network][0],
creds.WIFI_NETWORKS[network][1])
# We check this twice to enable AP mode if we failed to connect # We check this twice to enable AP mode if we failed to connect
# Normally this happens if the password has been misconfigured, # Normally this happens if the password has been misconfigured,