Skip to content

Commit

Permalink
Merge pull request #775 from Daft-Freak/another-scan
Browse files Browse the repository at this point in the history
Rescan flash after flashing from SD
  • Loading branch information
Gadgetoid committed Aug 8, 2022
2 parents 8d09ec5 + e1be0c0 commit b656fa3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firmware/firmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b656fa3

Please sign in to comment.