From a1656a85da2535bbb92e95d4d8ff2dcb1365992e Mon Sep 17 00:00:00 2001 From: tyeth Date: Mon, 14 Aug 2023 15:58:59 +0100 Subject: [PATCH] Add definition LPS33HW --- 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 601a9d114..7121cb952 100644 --- a/src/components/i2c/WipperSnapper_I2C.cpp +++ b/src/components/i2c/WipperSnapper_I2C.cpp @@ -470,7 +470,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice( _lc->configureDriver(msgDeviceInitReq); drivers.push_back(_lc); WS_DEBUG_PRINTLN("LC709203F Sensor Initialized Successfully!"); - } else if (strcmp("lps35hw", msgDeviceInitReq->i2c_device_name) == 0) { + } else if ((strcmp("lps33hw", msgDeviceInitReq->i2c_device_name) == 0) || + (strcmp("lps35hw", msgDeviceInitReq->i2c_device_name)) == 0) { _lps3xhw = new WipperSnapper_I2C_Driver_LPS3XHW(this->_i2c, i2cAddress); if (!_lps3xhw->begin()) { WS_DEBUG_PRINTLN("ERROR: Failed to initialize LPS3XHW Sensor!");