Skip to content

Commit a11b633

Browse files
committed
chore(tidy): clang format
1 parent 2c7b0b0 commit a11b633

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/i2c/controller.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ static const std::map<std::string, FnCreateI2CSensorDriver> I2cFactorySensor = {
221221
{"mlx90632d_ext",
222222
[](TwoWire *i2c, uint16_t addr, uint32_t mux_channel,
223223
const char *driver_name) -> drvBase * {
224-
drvMLX90632 *drv = new drvMLX90632(i2c, addr, mux_channel, driver_name);
225-
drv->ConfigureAndPrintSensorInfo(true);
226-
return drv;
224+
drvMLX90632 *drv = new drvMLX90632(i2c, addr, mux_channel, driver_name);
225+
drv->ConfigureAndPrintSensorInfo(true);
226+
return drv;
227227
}},
228228
{"mpl115a2",
229229
[](TwoWire *i2c, uint16_t addr, uint32_t mux_channel,

src/components/i2c/drivers/drvMlx90632.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class drvMLX90632 : public drvBase {
6969
_mlx90632 = nullptr;
7070
}
7171
_mlx90632 = new Adafruit_MLX90632();
72-
if (!_mlx90632->begin(_sensorAddress, _i2c)){
72+
if (!_mlx90632->begin(_address, _i2c)) {
7373
return false;
7474
}
7575

0 commit comments

Comments
 (0)