This commit is contained in:
2025-07-06 00:01:58 -04:00
parent 8110d6dd77
commit fab76ed8c1

View File

@@ -68,7 +68,8 @@ Main Function
// Initialize NVS // Initialize NVS
esp_err_t ret = nvs_flash_init(); esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { if (ret == ESP_ERR_NVS_NO_FREE_PAGES ||
ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK( nvs_flash_erase() ); ESP_ERROR_CHECK( nvs_flash_erase() );
ret = nvs_flash_init(); ret = nvs_flash_init();
} }