Skip to content

Commit 5658c88

Browse files
committed
Correct SCD30 data check
1 parent 1f69fde commit 5658c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver {
9595
return false;
9696
}
9797

98-
if (_scd->getEvent(&_humidity, &_temperature)) {
98+
if (!_scd->getEvent(&_humidity, &_temperature)) {
9999
return false;
100100
}
101101
_CO2.CO2 = _scd->CO2;

0 commit comments

Comments
 (0)