Skip to content

Commit 2bbdc1e

Browse files
committed
Fix event pointer usage for SCD sensors
1 parent 31eed58 commit 2bbdc1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SCD30.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)