Skip to content

Commit 3a66b01

Browse files
committed
bme68x pressure units
bme68x is show units as pascals.
1 parent b75aae3 commit 3a66b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class WipperSnapper_I2C_Driver_BME680 : public WipperSnapper_I2C_Driver {
130130
bool getEventPressure(sensors_event_t *pressureEvent) {
131131
if (!bmePerformReading())
132132
return false;
133-
pressureEvent->pressure = (float)_bme->pressure;
133+
pressureEvent->pressure = (float)_bme->pressure / 100.0;
134134
return true;
135135
}
136136

@@ -172,4 +172,4 @@ class WipperSnapper_I2C_Driver_BME680 : public WipperSnapper_I2C_Driver {
172172
Adafruit_BME680 *_bme; ///< BME680 object
173173
};
174174

175-
#endif // WipperSnapper_I2C_Driver_BME680
175+
#endif // WipperSnapper_I2C_Driver_BME680

0 commit comments

Comments
 (0)