mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Fixed 'sd_info' showing incorrect information when SD card not… (#8849)
Fixed 'sd_info' showing incorrect information when SD card not configured.
This commit is contained in:
commit
167b9f2e96
2 changed files with 7 additions and 1 deletions
|
@ -2319,6 +2319,12 @@ static void cliSdInfo(char *cmdline)
|
|||
|
||||
cliPrint("SD card: ");
|
||||
|
||||
if (sdcardConfig()->mode == SDCARD_MODE_NONE) {
|
||||
cliPrintLine("Not configured");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sdcard_isInserted()) {
|
||||
cliPrintLine("None inserted");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue