mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Fix SDC (#12671)
This commit is contained in:
parent
983c04d846
commit
aa228ea583
1 changed files with 7 additions and 5 deletions
|
@ -829,15 +829,17 @@ void init(void)
|
||||||
flashfsInit();
|
flashfsInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_BLACKBOX
|
||||||
#ifdef USE_SDCARD
|
#ifdef USE_SDCARD
|
||||||
if (sdcardConfig()->mode) {
|
if (blackboxConfig()->device == BLACKBOX_DEVICE_SDCARD) {
|
||||||
if (!(initFlags & SD_INIT_ATTEMPTED)) {
|
if (sdcardConfig()->mode) {
|
||||||
sdCardAndFSInit();
|
if (!(initFlags & SD_INIT_ATTEMPTED)) {
|
||||||
initFlags |= SD_INIT_ATTEMPTED;
|
sdCardAndFSInit();
|
||||||
|
initFlags |= SD_INIT_ATTEMPTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_BLACKBOX
|
|
||||||
blackboxInit();
|
blackboxInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue