From 04d48af04eb6facedce45a9dff947e475f9cf4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20P=C3=A9rez?= Date: Tue, 14 May 2019 09:15:43 -0400 Subject: [PATCH] fix bug with smartconfig Enables wifi STA mode in order to start SmartConfig correctly --- sonoff/support_wifi.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/sonoff/support_wifi.ino b/sonoff/support_wifi.ino index 445c14c0b..44efdac0f 100644 --- a/sonoff/support_wifi.ino +++ b/sonoff/support_wifi.ino @@ -159,6 +159,7 @@ void WifiConfig(uint8_t type) #ifdef USE_SMARTCONFIG else if (WIFI_SMARTCONFIG == wifi_config_type) { AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_1_SMARTCONFIG " " D_ACTIVE_FOR_3_MINUTES)); + WiFi.mode(WIFI_STA); // Disable AP mode WiFi.beginSmartConfig(); } #endif // USE_SMARTCONFIG