File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ class drvScd4x : public drvBase {
5959 */
6060 /* ******************************************************************************/
6161 bool begin () override {
62- _scd = new SensirionI2CScd4x ();
63- _scd->begin (*_i2c);
62+ _scd = new SensirionI2cScd4x ();
63+ _scd->begin (*_i2c, _sensorAddress );
6464
6565 // stop previously started measurement
6666 if (_scd->stopPeriodicMeasurement ()) {
@@ -90,7 +90,7 @@ class drvScd4x : public drvBase {
9090 delay (100 );
9191
9292 // Check if data is ready
93- error = _scd->getDataReadyFlag (isDataReady);
93+ error = _scd->getDataReadyStatus (isDataReady);
9494 if (error || !isDataReady) {
9595 return false ;
9696 }
@@ -153,7 +153,7 @@ class drvScd4x : public drvBase {
153153 }
154154
155155protected:
156- SensirionI2CScd4x *_scd; // /< SCD4x driver object
156+ SensirionI2cScd4x *_scd; // /< SCD4x driver object
157157 uint16_t _co2; // /< SCD4x co2 reading
158158 float _temperature; // /< SCD4x temperature reading
159159 float _humidity; // /< SCD4x humidity reading
You can’t perform that action at this time.
0 commit comments