From 3a66b011b0c9f329f4b864ce2d779a02789a9418 Mon Sep 17 00:00:00 2001 From: Mikey Sklar Date: Fri, 6 Dec 2024 10:07:40 -0800 Subject: [PATCH] bme68x pressure units bme68x is show units as pascals. --- src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h index 276f181dc..46231dcb4 100644 --- a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h +++ b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h @@ -130,7 +130,7 @@ class WipperSnapper_I2C_Driver_BME680 : public WipperSnapper_I2C_Driver { bool getEventPressure(sensors_event_t *pressureEvent) { if (!bmePerformReading()) return false; - pressureEvent->pressure = (float)_bme->pressure; + pressureEvent->pressure = (float)_bme->pressure / 100.0; return true; } @@ -172,4 +172,4 @@ class WipperSnapper_I2C_Driver_BME680 : public WipperSnapper_I2C_Driver { Adafruit_BME680 *_bme; ///< BME680 object }; -#endif // WipperSnapper_I2C_Driver_BME680 \ No newline at end of file +#endif // WipperSnapper_I2C_Driver_BME680