From 0d9bd4964764484fb39140b4acdd82c571b253c2 Mon Sep 17 00:00:00 2001 From: tyeth Date: Mon, 7 Aug 2023 14:52:19 +0100 Subject: [PATCH] add BME688 --- src/components/i2c/WipperSnapper_I2C.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/i2c/WipperSnapper_I2C.cpp b/src/components/i2c/WipperSnapper_I2C.cpp index 44954dc45..ed5247a59 100644 --- a/src/components/i2c/WipperSnapper_I2C.cpp +++ b/src/components/i2c/WipperSnapper_I2C.cpp @@ -269,7 +269,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice( _bmp388->configureDriver(msgDeviceInitReq); drivers.push_back(_bmp388); WS_DEBUG_PRINTLN("BMP388 Initialized Successfully!"); - } else if (strcmp("bme680", msgDeviceInitReq->i2c_device_name) == 0) { + } else if ((strcmp("bme680", msgDeviceInitReq->i2c_device_name) == 0) || + (strcmp("bme688", msgDeviceInitReq->i2c_device_name) == 0)) { _bme680 = new WipperSnapper_I2C_Driver_BME680(this->_i2c, i2cAddress); if (!_bme680->begin()) { WS_DEBUG_PRINTLN("ERROR: Failed to initialize BME680!");