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
|
@ -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…
Reference in New Issue