From 8b69bae52ca8524b8e4a63742028beef03a15250 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 21 Mar 2024 03:10:34 +0000 Subject: [PATCH] Fix slideshow when previous firmware left it --- .../system/updater/util/update_task_worker_backup.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/applications/system/updater/util/update_task_worker_backup.c b/applications/system/updater/util/update_task_worker_backup.c index 07914a8ec7..95d9306b94 100644 --- a/applications/system/updater/util/update_task_worker_backup.c +++ b/applications/system/updater/util/update_task_worker_backup.c @@ -222,11 +222,9 @@ static bool update_task_post_update(UpdateTask* update_task) { } else { path_append(tmp_path, furi_string_get_cstr(update_task->manifest->splash_file)); } - if(storage_common_copy( - update_task->storage, furi_string_get_cstr(tmp_path), SLIDESHOW_FS_PATH) != - FSE_OK) { - // actually, not critical - } + storage_common_remove(update_task->storage, SLIDESHOW_FS_PATH); // Overwrite if exists + storage_common_copy( + update_task->storage, furi_string_get_cstr(tmp_path), SLIDESHOW_FS_PATH); furi_string_free(tmp_path); update_task_set_progress(update_task, UpdateTaskStageSplashscreenInstall, 100); }