logic error

This commit is contained in:
David Todd 2020-01-26 19:50:51 -06:00
parent e01d14d076
commit b8e082da13
1 changed files with 1 additions and 3 deletions

View File

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