From b8e082da13671dd1178d402fa3c281e665a89019 Mon Sep 17 00:00:00 2001 From: David Todd Date: Sun, 26 Jan 2020 19:50:51 -0600 Subject: [PATCH] logic error --- pixo/wifi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pixo/wifi.py b/pixo/wifi.py index e55e462..e00f17c 100644 --- a/pixo/wifi.py +++ b/pixo/wifi.py @@ -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,