File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,12 @@ class WipperSnapper_I2C_Driver_BMP5XX : public WipperSnapper_I2C_Driver {
71
71
}
72
72
73
73
// Set up oversampling and filter initialization
74
- _bmp5xx->setTemperatureOversampling (BMP5XX_OVERSAMPLING_8X);
75
- _bmp5xx->setPressureOversampling (BMP5XX_OVERSAMPLING_4X);
76
- _bmp5xx->setIIRFilterCoeff (BMP5XX_IIR_FILTER_COEFF_3);
77
- _bmp5xx->setOutputDataRate (BMP5XX_ODR_50_HZ);
78
-
79
- return true ;
74
+ return _bmp5xx->setTemperatureOversampling (BMP5XX_OVERSAMPLING_8X) &&
75
+ _bmp5xx->setPressureOversampling (BMP5XX_OVERSAMPLING_16X) &&
76
+ _bmp5xx->setIIRFilterCoeff (BMP5XX_IIR_FILTER_COEFF_3) &&
77
+ _bmp5xx->setOutputDataRate (BMP5XX_ODR_50_HZ) &&
78
+ _bmp5xx-> setPowerMode (BMP5XX_POWERMODE_NORMAL) &&
79
+ _bmp5xx-> enablePressure ( true ) ;
80
80
}
81
81
82
82
/* ******************************************************************************/
You can’t perform that action at this time.
0 commit comments