mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-22 16:12:03 +00:00
hekate: adjust payload sd wait
hekate always waits at init, so not need to do that 2 times.
This commit is contained in:
parent
b01cc2432f
commit
a96cac5964
1 changed files with 5 additions and 3 deletions
|
@ -265,15 +265,17 @@ static void _launch_payload(char *path, bool update, bool clear_screen)
|
|||
hw_deinit(true, magic);
|
||||
}
|
||||
|
||||
// Some cards (Sandisk U1), do not like a fast power cycle. Wait min 100ms.
|
||||
sdmmc_storage_init_wait_sd();
|
||||
|
||||
void (*update_ptr)() = (void *)RCM_PAYLOAD_ADDR;
|
||||
void (*ext_payload_ptr)() = (void *)EXT_PAYLOAD_ADDR;
|
||||
|
||||
// Launch our payload.
|
||||
if (!update)
|
||||
{
|
||||
// Some cards (Sandisk U1), do not like a fast power cycle. Wait min 100ms.
|
||||
sdmmc_storage_init_wait_sd();
|
||||
|
||||
(*ext_payload_ptr)();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Set updated flag to skip check on launch.
|
||||
|
|
Loading…
Reference in a new issue