mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 11:42:09 +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);
|
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 (*update_ptr)() = (void *)RCM_PAYLOAD_ADDR;
|
||||||
void (*ext_payload_ptr)() = (void *)EXT_PAYLOAD_ADDR;
|
void (*ext_payload_ptr)() = (void *)EXT_PAYLOAD_ADDR;
|
||||||
|
|
||||||
// Launch our payload.
|
// Launch our payload.
|
||||||
if (!update)
|
if (!update)
|
||||||
|
{
|
||||||
|
// Some cards (Sandisk U1), do not like a fast power cycle. Wait min 100ms.
|
||||||
|
sdmmc_storage_init_wait_sd();
|
||||||
|
|
||||||
(*ext_payload_ptr)();
|
(*ext_payload_ptr)();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Set updated flag to skip check on launch.
|
// Set updated flag to skip check on launch.
|
||||||
|
|
Loading…
Reference in a new issue