Match main branch for 1.0.0 release of scd4x lib
This commit is contained in:
parent
bc1902ee47
commit
5150c9ba1a
1 changed files with 4 additions and 4 deletions
|
|
@ -59,8 +59,8 @@ public:
|
|||
*/
|
||||
/*******************************************************************************/
|
||||
bool begin() override {
|
||||
_scd = new SensirionI2CScd4x();
|
||||
_scd->begin(*_i2c);
|
||||
_scd = new SensirionI2cScd4x();
|
||||
_scd->begin(*_i2c, _sensorAddress);
|
||||
|
||||
// stop previously started measurement
|
||||
if (_scd->stopPeriodicMeasurement()) {
|
||||
|
|
@ -90,7 +90,7 @@ public:
|
|||
delay(100);
|
||||
|
||||
// Check if data is ready
|
||||
error = _scd->getDataReadyFlag(isDataReady);
|
||||
error = _scd->getDataReadyStatus(isDataReady);
|
||||
if (error || !isDataReady) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -153,7 +153,7 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
SensirionI2CScd4x *_scd; ///< SCD4x driver object
|
||||
SensirionI2cScd4x *_scd; ///< SCD4x driver object
|
||||
uint16_t _co2; ///< SCD4x co2 reading
|
||||
float _temperature; ///< SCD4x temperature reading
|
||||
float _humidity; ///< SCD4x humidity reading
|
||||
|
|
|
|||
Loading…
Reference in a new issue