1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 03:50:02 +03:00

Prevent sdcard_getMetadata from being called when card is not inserted or not ready

This commit is contained in:
jflyper 2018-10-05 02:22:51 +09:00
parent a598d06fe5
commit 57a6060005
3 changed files with 10 additions and 4 deletions

View file

@ -1999,7 +1999,7 @@ static void cliSdInfo(char *cmdline)
return;
}
if (!sdcard_isInitialized()) {
if (!sdcard_isFunctional() || !sdcard_isInitialized()) {
cliPrintLine("Startup failed");
return;
}