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. // Try 2 times to mount SD card.
if (!sd_mount()) if (!sd_mount())
{ {
// Restore speed to SDR104.
sd_end();
// Retry.
if (!sd_mount()) if (!sd_mount())
_show_errors(SD_MOUNT_ERROR); // Fatal. _show_errors(SD_MOUNT_ERROR); // Fatal.
} }