diff --git a/libraries/AP_Baro/AP_Baro_BMP085.cpp b/libraries/AP_Baro/AP_Baro_BMP085.cpp index 76a1042998..0279108860 100644 --- a/libraries/AP_Baro/AP_Baro_BMP085.cpp +++ b/libraries/AP_Baro/AP_Baro_BMP085.cpp @@ -29,9 +29,10 @@ extern const AP_HAL::HAL &hal; #ifndef BMP085_EOC #define BMP085_EOC -1 -#endif - #define OVERSAMPLING BMP085_OVERSAMPLING_ULTRAHIGHRES +#else +#define OVERSAMPLING BMP085_OVERSAMPLING_HIGHRES +#endif AP_Baro_BMP085::AP_Baro_BMP085(AP_Baro &baro, AP_HAL::OwnPtr dev) : AP_Baro_Backend(baro)