File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,10 @@ bool WipperSnapper_Component_I2C::initI2CDevice(
552
552
_scd40->configureDriver (msgDeviceInitReq);
553
553
drivers.push_back (_scd40);
554
554
WS_DEBUG_PRINTLN (" SCD4x Initialized Successfully!" );
555
- } else if (strcmp (" sen5x" , msgDeviceInitReq->i2c_device_name ) == 0 ) {
555
+ } else if ((strcmp (" sen5x" , msgDeviceInitReq->i2c_device_name ) == 0 ) ||
556
+ (strcmp (" sen55" , msgDeviceInitReq->i2c_device_name ) == 0 ) ||
557
+ (strcmp (" sen54" , msgDeviceInitReq->i2c_device_name ) == 0 ) ||
558
+ (strcmp (" sen50" , msgDeviceInitReq->i2c_device_name ) == 0 )) {
556
559
_sen5x = new WipperSnapper_I2C_Driver_SEN5X (this ->_i2c , i2cAddress);
557
560
if (!_sen5x->begin ()) {
558
561
WS_DEBUG_PRINTLN (" ERROR: Failed to initialize SEN5X!" );
You can’t perform that action at this time.
0 commit comments