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

Only look for SD card during initial startup and give up after timeout

This commit is contained in:
Nicholas Sherlock 2015-12-02 22:45:38 +13:00 committed by borisbstyle
parent e9b6867d40
commit 9d29efdd5d
4 changed files with 79 additions and 31 deletions

View file

@ -580,7 +580,7 @@ static void serializeSDCardSummaryReply(void)
serialize8(flags);
// Merge the card and filesystem states together
if (!sdcard_isInserted()) {
if (!sdcard_isInserted() || !sdcard_isFunctional()) {
state = MSP_SDCARD_STATE_NOT_PRESENT;
} else {
switch (afatfs_getFilesystemState()) {