Skip to content

Commit 9c6ee19

Browse files
authored
Merge pull request #714 from adafruit/SCD-pointers-v98-fix
SCD-pointers-v98-fix
2 parents 31eed58 + 5658c88 commit 9c6ee19

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit WipperSnapper
2-
version=1.0.0-beta.98
2+
version=1.0.0-beta.99
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino application for Adafruit.io WipperSnapper

src/Wippersnapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
#endif
143143

144144
#define WS_VERSION \
145-
"1.0.0-beta.98" ///< WipperSnapper app. version (semver-formatted)
145+
"1.0.0-beta.99" ///< WipperSnapper app. version (semver-formatted)
146146

147147
// Reserved Adafruit IO MQTT topics
148148
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h

Lines changed: 4 additions & 4 deletions
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;
@@ -118,7 +118,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver {
118118
return false;
119119
}
120120

121-
tempEvent = &_temperature;
121+
*tempEvent = _temperature;
122122
return true;
123123
}
124124

@@ -137,7 +137,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver {
137137
return false;
138138
}
139139

140-
humidEvent = &_humidity;
140+
*humidEvent = _humidity;
141141
return true;
142142
}
143143

@@ -156,7 +156,7 @@ class WipperSnapper_I2C_Driver_SCD30 : public WipperSnapper_I2C_Driver {
156156
return false;
157157
}
158158

159-
co2Event = &_CO2;
159+
*co2Event = _CO2;
160160
return true;
161161
}
162162

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD4X.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
141141
return false;
142142
}
143143

144-
tempEvent = &_temperature;
144+
*tempEvent = _temperature;
145145
return true;
146146
}
147147

@@ -160,7 +160,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
160160
return false;
161161
}
162162

163-
humidEvent = &_humidity;
163+
*humidEvent = _humidity;
164164
return true;
165165
}
166166

@@ -179,7 +179,7 @@ class WipperSnapper_I2C_Driver_SCD4X : public WipperSnapper_I2C_Driver {
179179
return false;
180180
}
181181

182-
co2Event = &_CO2;
182+
*co2Event = _CO2;
183183
return true;
184184
}
185185

0 commit comments

Comments
 (0)