1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-09-16 20:13:33 +01:00

hekate: adjust payload sd wait

hekate always waits at init, so not need to do that 2 times.
This commit is contained in:
CTCaer 2024-06-02 07:56:07 +03:00
parent b01cc2432f
commit a96cac5964

View file

@ -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.