From f222bcb61a7c9dc8fff1b73bf11b7a67172c7c0e Mon Sep 17 00:00:00 2001 From: tyeth Date: Fri, 1 Sep 2023 00:07:02 +0100 Subject: [PATCH] Fix driver for BME680 + BME688 using alt address --- src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h index 0c95206de..276f181dc 100644 --- a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h +++ b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_BME680.h @@ -62,7 +62,7 @@ class WipperSnapper_I2C_Driver_BME680 : public WipperSnapper_I2C_Driver { _bme = new Adafruit_BME680(_i2c); // attempt to initialize BME680 - if (!_bme->begin()) + if (!_bme->begin(_sensorAddress)) return false; // Set up oversampling and filter initialization