From 17e321b2427719a9916cebe31a59becb52bc37ea 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 e35110cc3..e058c8c35 100644 --- a/src/components/i2c/WipperSnapper_I2C.cpp +++ b/src/components/i2c/WipperSnapper_I2C.cpp @@ -482,7 +482,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!");