AP_Baro: only build BMP085 driver on APM1

This commit is contained in:
Andrew Tridgell 2013-01-10 21:01:07 +11:00
parent 63634c4e8a
commit 2c603a0960
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@
#include <AP_Math.h> // ArduPilot Mega Vector/Matrix math Library
#include <AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#include "AP_Baro_BMP085.h"
extern const AP_HAL::HAL& hal;
@ -268,3 +268,4 @@ void AP_Baro_BMP085::Calculate()
_count /= 2;
}
}
#endif // CONFIG_HAL_BOARD