Skip to content

Commit 32f85f7

Browse files
committed
add(mlx90632): alias B model to D driver
1 parent 28dff4e commit 32f85f7

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
@@ -537,7 +537,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
537537
_mcp9808->configureDriver(msgDeviceInitReq);
538538
drivers.push_back(_mcp9808);
539539
WS_DEBUG_PRINTLN("MCP9808 Initialized Successfully!");
540-
} else if (strcmp("mlx90632d_med", msgDeviceInitReq->i2c_device_name) == 0) {
540+
} else if (strcmp("mlx90632b", msgDeviceInitReq->i2c_device_name) == 0 ||
541+
strcmp("mlx90632d_med", msgDeviceInitReq->i2c_device_name) == 0) {
541542
_mlx90632d = new WipperSnapper_I2C_Driver_MLX90632D(this->_i2c, i2cAddress);
542543
if (!_mlx90632d->begin()) {
543544
WS_DEBUG_PRINTLN("ERROR: Failed to initialize MLX90632!");

0 commit comments

Comments
 (0)