Skip to content

Commit 7084552

Browse files
authored
Merge pull request #469 from tyeth/add-LPS33HW
Add definition LPS33HW
2 parents 7636a64 + 17e321b commit 7084552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
483483
_lc->configureDriver(msgDeviceInitReq);
484484
drivers.push_back(_lc);
485485
WS_DEBUG_PRINTLN("LC709203F Sensor Initialized Successfully!");
486-
} else if (strcmp("lps35hw", msgDeviceInitReq->i2c_device_name) == 0) {
486+
} else if ((strcmp("lps33hw", msgDeviceInitReq->i2c_device_name) == 0) ||
487+
(strcmp("lps35hw", msgDeviceInitReq->i2c_device_name)) == 0) {
487488
_lps3xhw = new WipperSnapper_I2C_Driver_LPS3XHW(this->_i2c, i2cAddress);
488489
if (!_lps3xhw->begin()) {
489490
WS_DEBUG_PRINTLN("ERROR: Failed to initialize LPS3XHW Sensor!");

0 commit comments

Comments
 (0)