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:
parent
a598d06fe5
commit
57a6060005
3 changed files with 10 additions and 4 deletions
|
@ -1999,7 +1999,7 @@ static void cliSdInfo(char *cmdline)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!sdcard_isInitialized()) {
|
||||
if (!sdcard_isFunctional() || !sdcard_isInitialized()) {
|
||||
cliPrintLine("Startup failed");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue