1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

nyx: reset SD speed to SDR104 if init fails

This commit is contained in:
CTCaer 2023-02-22 13:46:50 +02:00
parent 2e8bfc1f56
commit 26fa363ca4

View file

@ -438,6 +438,10 @@ void nyx_init_load_res()
// Try 2 times to mount SD card.
if (!sd_mount())
{
// Restore speed to SDR104.
sd_end();
// Retry.
if (!sd_mount())
_show_errors(SD_MOUNT_ERROR); // Fatal.
}