Browse Source

AP_Baro: only build BMP085 driver on APM1

master
Andrew Tridgell 12 years ago
parent
commit
2c603a0960
  1. 3
      libraries/AP_Baro/AP_Baro_BMP085.cpp

3
libraries/AP_Baro/AP_Baro_BMP085.cpp

@ -41,7 +41,7 @@ @@ -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() @@ -268,3 +268,4 @@ void AP_Baro_BMP085::Calculate()
_count /= 2;
}
}
#endif // CONFIG_HAL_BOARD

Loading…
Cancel
Save