Explorar o código

fixed broken tcp_perf example by adding nvs_flash

petermccloud %!s(int64=8) %!d(string=hai) anos
pai
achega
0dea8bca46
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      examples/performance/tcp_perf/main/tcp_main.c

+ 2 - 0
examples/performance/tcp_perf/main/tcp_main.c

@@ -33,6 +33,7 @@ step3:
 #include "freertos/event_groups.h"
 #include "esp_log.h"
 #include "esp_err.h"
+#include "nvs_flash.h"
 
 #include "tcp_perf.h"
 
@@ -123,6 +124,7 @@ static void tcp_conn(void *pvParameters)
 
 void app_main(void)
 {
+    nvs_flash_init();
 #if EXAMPLE_ESP_WIFI_MODE_AP
     ESP_LOGI(TAG, "EXAMPLE_ESP_WIFI_MODE_AP");
     wifi_init_softap();