mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Merge pull request #7399 from etracer65/blackbox_undefined_compile_fix
Fix compilation errors if USE_BLACKBOX is not defined
This commit is contained in:
commit
c7e462fe96
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue