ESP32-Console

This commit is contained in:
2025-01-09 17:24:52 -05:00
parent 653fd5c84c
commit 314b2e12b2

View File

@@ -13,7 +13,11 @@
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) {
ESP_ERROR_CHECK (nvs_flash_erase());
err = nvs_flash_init();
}
ESP_ERROR_CHECK(err);
}
void app_main(void)