1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Fix compilation errors if USE_BLACKBOX is not defined

This commit is contained in:
Bruce Luckcuck 2019-01-15 10:08:15 -05:00
parent 718b29d674
commit 4da9b75c8f
2 changed files with 5 additions and 2 deletions

View file

@ -681,6 +681,7 @@ void init(void)
flashfsInit();
#endif
#ifdef USE_BLACKBOX
#ifdef USE_SDCARD
if (blackboxConfig()->device == BLACKBOX_DEVICE_SDCARD) {
if (sdcardConfig()->mode) {
@ -692,8 +693,6 @@ void init(void)
}
}
#endif
#ifdef USE_BLACKBOX
blackboxInit();
#endif

View file

@ -226,6 +226,10 @@
#endif
#endif
#ifndef USE_BLACKBOX
#undef USE_USB_MSC
#endif
#if (!defined(USE_FLASHFS) || !defined(USE_RTC_TIME) || !defined(USE_USB_MSC))
#undef USE_PERSISTENT_MSC_RTC
#endif