Skip to content

Commit 5866f75

Browse files
author
Zhang Jun Hao
committed
fix(esp8266): fix compile failed when CONFIG_ESP8266_WIFI_CONNECT_OPEN_ROUTER_WHEN_PWD_IS_SET is unset
1 parent 80341e3 commit 5866f75

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)