1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00
This commit is contained in:
Mark Haslinghuis 2023-04-13 23:53:28 +02:00 committed by GitHub
parent 983c04d846
commit aa228ea583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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