Use different error for /luma folder creation failure
This commit is contained in:
parent
a03988b05d
commit
11be450894
@ -52,7 +52,14 @@ static bool switchToMainDir(bool isSd)
|
||||
case FR_OK:
|
||||
return true;
|
||||
case FR_NO_PATH:
|
||||
return f_mkdir(mainDir) == FR_OK && switchToMainDir(isSd);
|
||||
{
|
||||
if (f_mkdir(mainDir) != FR_OK)
|
||||
{
|
||||
error("Failed to create luma directory.");
|
||||
return false;
|
||||
}
|
||||
return switchToMainDir(isSd);
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ u32 waitInput(bool isMenu)
|
||||
return key;
|
||||
}
|
||||
|
||||
void mcuPowerOff(void)
|
||||
__attribute__((noreturn)) void mcuPowerOff(void)
|
||||
{
|
||||
// Unmount partitions
|
||||
unmountPartitions();
|
||||
|
Loading…
x
Reference in New Issue
Block a user