mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 01:37:22 +00:00
examples: remove nvs_flash_init from examples which do not use NVS
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
#include <stdio.h>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "esp_system.h"
|
||||
#include "nvs_flash.h"
|
||||
#include "driver/gpio.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
@@ -42,6 +40,5 @@ void blink_task(void *pvParameter)
|
||||
|
||||
void app_main()
|
||||
{
|
||||
nvs_flash_init();
|
||||
xTaskCreate(&blink_task, "blink_task", 512, NULL, 5, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user