mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Don't try to compile blackbox if BLACKBOX define isn't set
Just in case you link against blackbox.c but aren't using the BLACKBOX define in target.h.
This commit is contained in:
parent
f6408cd355
commit
c6d71f148d
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,8 @@
|
|||
#include "platform.h"
|
||||
#include "version.h"
|
||||
|
||||
#ifdef BLACKBOX
|
||||
|
||||
#include "common/maths.h"
|
||||
#include "common/axis.h"
|
||||
#include "common/color.h"
|
||||
|
@ -1141,3 +1143,5 @@ void initBlackbox(void)
|
|||
blackboxSetState(BLACKBOX_STATE_DISABLED);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue