From 8c3b358abf2fc6b0df2316ffce5946cc8320f708 Mon Sep 17 00:00:00 2001 From: NikLeberg <39563554+NikLeberg@users.noreply.github.com> Date: Tue, 16 Feb 2021 18:07:46 +0100 Subject: [PATCH] allow for minimal scope of wifi_init_config_t With this change one can use the default config as a variable with minimal scope: esp_wifi_init(&(wifi_init_config_t)WIFI_INIT_CONFIG_DEFAULT()) --- components/esp_wifi/include/esp_wifi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_wifi.h b/components/esp_wifi/include/esp_wifi.h index 7b084580cd..b92353b157 100644 --- a/components/esp_wifi/include/esp_wifi.h +++ b/components/esp_wifi/include/esp_wifi.h @@ -218,7 +218,7 @@ extern uint64_t g_wifi_feature_caps; .mgmt_sbuf_num = WIFI_MGMT_SBUF_NUM, \ .feature_caps = g_wifi_feature_caps, \ .magic = WIFI_INIT_CONFIG_MAGIC\ -}; +} /** * @brief Initialize WiFi