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
1 changed files with 4 additions and 0 deletions

View File

@ -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