diff --git a/library.properties b/library.properties index 85ba281d3..ee0eaf42a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit WipperSnapper -version=1.0.0-beta.98 +version=1.0.0-beta.99 author=Adafruit maintainer=Adafruit sentence=Arduino application for Adafruit.io WipperSnapper diff --git a/src/Wippersnapper.h b/src/Wippersnapper.h index 4c17dbf23..37814f708 100644 --- a/src/Wippersnapper.h +++ b/src/Wippersnapper.h @@ -142,7 +142,7 @@ #endif #define WS_VERSION \ - "1.0.0-beta.98" ///< WipperSnapper app. version (semver-formatted) + "1.0.0-beta.99" ///< WipperSnapper app. version (semver-formatted) // Reserved Adafruit IO MQTT topics #define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic diff --git a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h index 57b83ea2a..19305bc36 100644 --- a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h +++ b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h @@ -95,7 +95,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver { return false; } - if (_scd->getEvent(&_humidity, &_temperature)) { + if (!_scd->getEvent(&_humidity, &_temperature)) { return false; } _CO2.CO2 = _scd->CO2; @@ -118,7 +118,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver { return false; } - tempEvent = &_temperature; + *tempEvent = _temperature; return true; } @@ -137,7 +137,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver { return false; } - humidEvent = &_humidity; + *humidEvent = _humidity; return true; } @@ -156,7 +156,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver { return false; } - co2Event = &_CO2; + *co2Event = _CO2; return true; } diff --git a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h index 28885ac12..9e7c48b43 100644 --- a/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h +++ b/src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h @@ -141,7 +141,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver { return false; } - tempEvent = &_temperature; + *tempEvent = _temperature; return true; } @@ -160,7 +160,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver { return false; } - humidEvent = &_humidity; + *humidEvent = _humidity; return true; } @@ -179,7 +179,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver { return false; } - co2Event = &_CO2; + *co2Event = _CO2; return true; }