mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 11:36:59 +03:00
OTA + nvs parameters bug fixes
This commit is contained in:
@@ -101,6 +101,14 @@ static void initialize_nvs() {
|
||||
err = nvs_flash_init();
|
||||
}
|
||||
ESP_ERROR_CHECK(err);
|
||||
|
||||
err = nvs_flash_init_partition(settings_partition);
|
||||
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
ESP_ERROR_CHECK(nvs_flash_erase_partition(settings_partition));
|
||||
err = nvs_flash_init_partition(settings_partition);
|
||||
}
|
||||
ESP_ERROR_CHECK(err);
|
||||
|
||||
}
|
||||
char * process_ota_url(){
|
||||
nvs_handle nvs;
|
||||
|
||||
Reference in New Issue
Block a user