Skip to content

Commit c2fac61

Browse files
committed
Update begin and getDataReadyStatus
1 parent 861d677 commit c2fac61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
5252
/*******************************************************************************/
5353
bool begin() {
5454
_scd = new SensirionI2cScd4x();
55-
_scd->begin(*_i2c);
55+
_scd->begin(*_i2c, _sensorAddress);
5656

5757
// stop previously started measurement
5858
if (_scd->stopPeriodicMeasurement())
@@ -78,7 +78,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
7878
delay(100);
7979

8080
// Check if data is ready
81-
error = _scd->getDataReadyFlag(isDataReady);
81+
error = _scd->getDataReadyStatus(isDataReady);
8282
if (error || !isDataReady)
8383
return false;
8484

0 commit comments

Comments
 (0)