From e1be0c0d6ba5ac20718283b28d2d5a11ec7433fe Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Sun, 12 Jun 2022 17:41:55 +0100 Subject: [PATCH] Rescan flash after flashing from SD --- firmware/firmware.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/firmware.cpp b/firmware/firmware.cpp index 7ed7afe16..9b15017e4 100644 --- a/firmware/firmware.cpp +++ b/firmware/firmware.cpp @@ -458,8 +458,10 @@ static bool launch_game_from_sd(const char *path, bool auto_delete = false) { cleanup_duplicates(meta, launch_offset); } - if(launch_offset == 0xFFFFFFFF) + if(launch_offset == 0xFFFFFFFF) { launch_offset = flash_from_sd_to_qspi_flash(file, flash_offset); + scan_flash(); + } f_close(&file);