1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +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:
Nicholas Sherlock 2015-02-22 12:01:14 +13:00
parent f6408cd355
commit c6d71f148d

View file

@ -21,6 +21,8 @@
#include "platform.h" #include "platform.h"
#include "version.h" #include "version.h"
#ifdef BLACKBOX
#include "common/maths.h" #include "common/maths.h"
#include "common/axis.h" #include "common/axis.h"
#include "common/color.h" #include "common/color.h"
@ -1141,3 +1143,5 @@ void initBlackbox(void)
blackboxSetState(BLACKBOX_STATE_DISABLED); blackboxSetState(BLACKBOX_STATE_DISABLED);
} }
} }
#endif