AP_AHRS: fixed example build on APM2

This commit is contained in:
Andrew Tridgell 2014-11-28 17:59:18 +11:00
parent 48abfcede7
commit 38c1b622f3
1 changed files with 1 additions and 3 deletions

View File

@ -43,9 +43,7 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
// INS and Baro declaration
AP_InertialSensor ins;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
AP_ADC_ADS7844 adc;
#endif