Просмотр исходного кода

esp_wifi: Updata WiFi lib

1. Fix handling of multiple AP credentials in WPS
2. Fix esp_wifi log levels
xiehang 5 лет назад
Родитель
Сommit
56416dddda

+ 2 - 1
components/esp32/include/esp_wifi_internal.h

@@ -51,7 +51,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*/

+ 1 - 1
components/esp32/lib

@@ -1 +1 @@
-Subproject commit f2cebd142ccae8d3db3a6c6bfed5743171f99a38
+Subproject commit 60ac0520227376e4351a9e29b9a714dc22f2ebf9

+ 2 - 0
components/esp32/wifi_init.c

@@ -60,6 +60,8 @@ static void __attribute__((constructor)) s_set_default_wifi_log_level()
     */
     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()