Skip to content

Commit

Permalink
add BME688
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Aug 7, 2023
1 parent 6ab38f2 commit 0d9bd49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/i2c/WipperSnapper_I2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down

0 comments on commit 0d9bd49

Please sign in to comment.