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:
parent
e9b6867d40
commit
9d29efdd5d
4 changed files with 79 additions and 31 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue