1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-1312 Missing ifdefs on pios_board.c

This commit is contained in:
Alessio Morale 2014-04-26 18:39:57 +02:00
parent db9435b5ed
commit 28859d2305

View File

@ -36,7 +36,6 @@
#include <pios_oplinkrcvr_priv.h>
#include <taskinfo.h>
#include <pios_callbackscheduler.h>
#include <pios_ws2811.h>
/*
* 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.h>
PIOS_WS2811_Init(&pios_ws2811_cfg, &pios_ws2811_pin_cfg);
#endif // PIOS_INCLUDE_WS2811
}
/**