Skip to content

Commit b04f17c

Browse files
committed
fix(hdc302x): Add strcmp for hdc302x + header
1 parent 890a87b commit b04f17c

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/components/i2c/controller.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ static const std::map<std::string, FnCreateI2CSensorDriver> I2cFactorySensor = {
118118
const char *driver_name) -> drvBase * {
119119
return new drvEns160(i2c, addr, mux_channel, driver_name);
120120
}},
121+
{"hdc302x",
122+
[](TwoWire *i2c, uint16_t addr, uint32_t mux_channel,
123+
const char *driver_name) -> drvBase * {
124+
return new drvHdc302x(i2c, addr, mux_channel, driver_name);
125+
}},
121126
{"hts221",
122127
[](TwoWire *i2c, uint16_t addr, uint32_t mux_channel,
123128
const char *driver_name) -> drvBase * {

src/components/i2c/controller.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "drivers/drvDps310.h"
3131
#include "drivers/drvDs2484.h"
3232
#include "drivers/drvEns160.h"
33+
#include "drivers/drvHdc302x.h"
3334
#include "drivers/drvHts221.h"
3435
#include "drivers/drvHtu21d.h"
3536
#include "drivers/drvIna219.h"

0 commit comments

Comments
 (0)