We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7636a64 + 17e321b commit 7084552Copy full SHA for 7084552
src/components/i2c/WipperSnapper_I2C.cpp
@@ -483,7 +483,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
483
_lc->configureDriver(msgDeviceInitReq);
484
drivers.push_back(_lc);
485
WS_DEBUG_PRINTLN("LC709203F Sensor Initialized Successfully!");
486
- } else if (strcmp("lps35hw", msgDeviceInitReq->i2c_device_name) == 0) {
+ } else if ((strcmp("lps33hw", msgDeviceInitReq->i2c_device_name) == 0) ||
487
+ (strcmp("lps35hw", msgDeviceInitReq->i2c_device_name)) == 0) {
488
_lps3xhw = new WipperSnapper_I2C_Driver_LPS3XHW(this->_i2c, i2cAddress);
489
if (!_lps3xhw->begin()) {
490
WS_DEBUG_PRINTLN("ERROR: Failed to initialize LPS3XHW Sensor!");
0 commit comments