mirror of
https://github.com/c0de-archive/pixoPython.git
synced 2025-08-08 07:58:44 +00:00
logic error
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user