From 28859d2305f7e7b78008be69ec7db868247ffbee Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Sat, 26 Apr 2014 18:39:57 +0200 Subject: [PATCH] OP-1312 Missing ifdefs on pios_board.c --- .../targets/boards/discoveryf4bare/firmware/pios_board.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flight/targets/boards/discoveryf4bare/firmware/pios_board.c b/flight/targets/boards/discoveryf4bare/firmware/pios_board.c index bccf9a4d8..ee7159705 100644 --- a/flight/targets/boards/discoveryf4bare/firmware/pios_board.c +++ b/flight/targets/boards/discoveryf4bare/firmware/pios_board.c @@ -36,7 +36,6 @@ #include #include #include -#include /* * Pull in the board-specific static HW definitions. * Including .c files is a bit ugly but this allows all of @@ -932,7 +931,11 @@ void PIOS_Board_Init(void) PIOS_MPU6000_Init(pios_spi_gyro_id, 0, &pios_mpu6000_cfg); PIOS_MPU6000_CONFIG_Configure(); #endif - PIOS_WS2811_Init(&pios_ws2811_cfg,&pios_ws2811_pin_cfg); + +#ifdef PIOS_INCLUDE_WS2811 +#include + PIOS_WS2811_Init(&pios_ws2811_cfg, &pios_ws2811_pin_cfg); +#endif // PIOS_INCLUDE_WS2811 } /**