diff --git a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde index 74c92afcac..479587f0c9 100644 --- a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde +++ b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde @@ -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