You've already forked dspico-firmware
mirror of
https://github.com/LNH-team/dspico-firmware.git
synced 2026-01-09 16:28:22 -08:00
Updated initSd to stop trying when the SD card can be read, but no file system was found (#6)
This commit is contained in:
@@ -132,12 +132,17 @@ static void initSd(void)
|
||||
bool ok = false;
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
if (f_mount(&sFatFs, "0:", 1) == FR_OK)
|
||||
FRESULT mountResult = f_mount(&sFatFs, "0:", 1);
|
||||
if (mountResult == FR_OK)
|
||||
{
|
||||
ok = true;
|
||||
sIsSdCardMounted = true;
|
||||
break;
|
||||
}
|
||||
else if (mountResult == FR_NO_FILESYSTEM)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!ok)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user