Skip to content

Commit 1826ff0

Browse files
committed
Merge branch 'bugfix/fix_compile_failed_when_CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET_is_unset' into 'master'
fix(esp8266): fix compile failed when CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET is unset See merge request sdk/ESP8266_RTOS_SDK!1263
2 parents 6f1c1c0 + 5866f75 commit 1826ff0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/esp8266/source/esp_wifi.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
#include "phy.h"
2121

2222
const size_t _g_esp_wifi_ppt_task_stk_size = CONFIG_WIFI_PPT_TASKSTACK_SIZE;
23-
const bool _g_esp_wifi_connect_open_router_when_pwd_is_set = CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET;
23+
24+
#if CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET
25+
const bool _g_esp_wifi_connect_open_router_when_pwd_is_set = true;
26+
#else
27+
const bool _g_esp_wifi_connect_open_router_when_pwd_is_set = false;
28+
#endif
2429

2530
esp_err_t esp_wifi_init_internal(const wifi_init_config_t *config);
2631

0 commit comments

Comments
 (0)