From 5707296aff1e89c91f4e0a66bab004a92f42a8c8 Mon Sep 17 00:00:00 2001 From: aditi_lonkar Date: Sun, 16 Aug 2020 15:13:23 +0530 Subject: [PATCH] wifi: Fix esp_wifi log levels --- components/esp_wifi/include/esp_private/wifi.h | 3 ++- components/esp_wifi/src/wifi_init.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_private/wifi.h b/components/esp_wifi/include/esp_private/wifi.h index 4e995b679a..15f30eee09 100644 --- a/components/esp_wifi/include/esp_private/wifi.h +++ b/components/esp_wifi/include/esp_private/wifi.h @@ -53,7 +53,8 @@ typedef struct { * */ typedef enum { - WIFI_LOG_ERROR = 0, /*enabled by default*/ + WIFI_LOG_NONE = 0, + WIFI_LOG_ERROR, /*enabled by default*/ WIFI_LOG_WARNING, /*enabled by default*/ WIFI_LOG_INFO, /*enabled by default*/ WIFI_LOG_DEBUG, /*can be set in menuconfig*/ diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 74db41fdbc..4307598d77 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -59,6 +59,8 @@ static void __attribute__((constructor)) s_set_default_wifi_log_level(void) */ esp_log_level_set("wifi", CONFIG_LOG_DEFAULT_LEVEL); esp_log_level_set("mesh", CONFIG_LOG_DEFAULT_LEVEL); + esp_log_level_set("smartconfig", CONFIG_LOG_DEFAULT_LEVEL); + esp_log_level_set("ESPNOW", CONFIG_LOG_DEFAULT_LEVEL); } static void esp_wifi_set_debug_log(void)