add(mlx90632): alias B model to D driver
This commit is contained in:
parent
28dff4e04d
commit
32f85f7b47
1 changed files with 2 additions and 1 deletions
|
|
@ -537,7 +537,8 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
|
|||
_mcp9808->configureDriver(msgDeviceInitReq);
|
||||
drivers.push_back(_mcp9808);
|
||||
WS_DEBUG_PRINTLN("MCP9808 Initialized Successfully!");
|
||||
} else if (strcmp("mlx90632d_med", msgDeviceInitReq->i2c_device_name) == 0) {
|
||||
} else if (strcmp("mlx90632b", msgDeviceInitReq->i2c_device_name) == 0 ||
|
||||
strcmp("mlx90632d_med", msgDeviceInitReq->i2c_device_name) == 0) {
|
||||
_mlx90632d = new WipperSnapper_I2C_Driver_MLX90632D(this->_i2c, i2cAddress);
|
||||
if (!_mlx90632d->begin()) {
|
||||
WS_DEBUG_PRINTLN("ERROR: Failed to initialize MLX90632!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue