Skip to content

Commit df71485

Browse files
committed
Fix: use correct short name for LPS28DFW
1 parent df2b6b0 commit df71485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/i2c/WipperSnapper_I2C.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
709709
_lps25hb->configureDriver(msgDeviceInitReq);
710710
drivers.push_back(_lps25hb);
711711
WS_DEBUG_PRINTLN("LPS25HB Sensor Initialized Successfully!");
712-
} else if (strcmp("lps28hb", msgDeviceInitReq->i2c_device_name) == 0) {
712+
} else if (strcmp("lps28dfw", msgDeviceInitReq->i2c_device_name) == 0) {
713713
_lps28hb = new WipperSnapper_I2C_Driver_LPS28DFW(this->_i2c, i2cAddress);
714714
if (!_lps28hb->begin()) {
715715
WS_DEBUG_PRINTLN("ERROR: Failed to initialize LPS28DFW Sensor!");

0 commit comments

Comments
 (0)