mirror of
https://github.com/c0de-archive/pixoPython.git
synced 2024-12-22 13:22:40 +00:00
logic error
This commit is contained in:
parent
e01d14d076
commit
b8e082da13
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user