From a319a6b14c82d243345da25258f5f22313bfb17f Mon Sep 17 00:00:00 2001 From: James Cotton Date: Wed, 14 Mar 2012 22:35:09 -0500 Subject: [PATCH] Flags to disable mag/baro init --- flight/Revolution/System/pios_board.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flight/Revolution/System/pios_board.c b/flight/Revolution/System/pios_board.c index e54752770..13ecca3de 100644 --- a/flight/Revolution/System/pios_board.c +++ b/flight/Revolution/System/pios_board.c @@ -805,9 +805,13 @@ void PIOS_Board_Init(void) { #endif +#if defined(PIOS_INCLUDE_HMC5883) PIOS_HMC5883_Init(&pios_hmc5883_cfg); +#endif +#if defined(PIOS_INCLUDE_MS5611) PIOS_MS5611_Init(&pios_ms5611_cfg, pios_i2c_pressure_adapter_id); +#endif } /**