[FL-2654] Updater: retrying pre-boot SD card mount multiple times (#1402)

* Updater: retrying pre-boot SD card mount multiple times
* Updater: added delay before retrying SD card mount on early boot

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2022-07-31 02:48:55 +03:00
committed by GitHub
parent 712a48b5db
commit 84550d5878
5 changed files with 26 additions and 11 deletions

View File

@@ -26,8 +26,7 @@ static FS_Error storage_ext_parse_error(SDError error);
static bool sd_mount_card(StorageData* storage, bool notify) {
bool result = false;
const uint8_t max_init_counts = 10;
uint8_t counter = max_init_counts;
uint8_t counter = BSP_SD_MaxMountRetryCount();
uint8_t bsp_result;
SDData* sd_data = storage->data;