Skip to content

Commit 5150c9b

Browse files
committed
Match main branch for 1.0.0 release of scd4x lib
1 parent bc1902e commit 5150c9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/i2c/drivers/drvScd4x.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

155155
protected:
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

0 commit comments

Comments
 (0)