mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 03:42:24 +00:00
ESP32-Console
This commit is contained in:
@@ -11,11 +11,14 @@
|
||||
#include "esp_log.h"
|
||||
#include "esp_flash.h"
|
||||
#include "nvs.h"
|
||||
#include "esp_vfs_dev.h"
|
||||
#include "esp_vfs_fat.h"
|
||||
#include "esp_system.h"
|
||||
#include "esp_console.h"
|
||||
|
||||
static void initialize_nvs (void) {
|
||||
esp_err_t err = nvs_flash_init();
|
||||
if (err = ESP_ERR_NVS_NO_FREE_PAGES || err = ESP_ERR_NVS_NEW_VERSION) {
|
||||
if (err = ESP_ERR_NVS_NO_FREE_PAGES || err = ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
ESP_ERROR_CHECK (nvs_flash_erase());
|
||||
err = nvs_flash_init();
|
||||
}
|
||||
|
Reference in New Issue
Block a user