Skip to content

Commit 37f8480

Browse files
committed
fix(bmp5xx): return result of setup commands
1 parent 72b8955 commit 37f8480

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_BMP5XX.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ class WipperSnapper_I2C_Driver_BMP5XX : public WipperSnapper_I2C_Driver {
7171
}
7272

7373
// 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);
8080
}
8181

8282
/*******************************************************************************/

0 commit comments

Comments
 (0)