add(mlx90632): alias B model to D driver

This commit is contained in:
tyeth 2025-08-20 14:45:45 +01:00
parent 28dff4e04d
commit 32f85f7b47

View file

@ -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!");