1
0
Fork 0
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:
Michael Keller 2019-09-09 23:28:35 +12:00 committed by GitHub
commit 167b9f2e96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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;