From 3b91dda6a430bae3221dabd17d11fd10ff0e3279 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 29 Jun 2024 18:53:32 +0200 Subject: remove superfluous wifi.sta.connect() call wifi.sta.config automatically connects --- src/init.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index db7b788..e835e99 100644 --- a/src/init.lua +++ b/src/init.lua @@ -52,7 +52,6 @@ function connect_wifi() wifi.eventmon.register(wifi.eventmon.STA_DISCONNECTED, wifi_err) wifi.setmode(wifi.STATION, false) wifi.sta.config(station_cfgs[wifi_index]) - wifi.sta.connect() end function scd4x_start() -- cgit v1.2.3