1
1
/*
2
2
* THIS FILE IS AUTOMATICALLY GENERATED
3
3
*
4
- * Generator: sensirion-driver-generator 0.9.0
4
+ * Generator: sensirion-driver-generator 0.9.1
5
5
* Product: scd30
6
6
* Version: None
7
7
*/
@@ -61,13 +61,13 @@ int16_t SensirionI2cScd30::awaitDataReady() {
61
61
62
62
int16_t SensirionI2cScd30::blockingReadMeasurementData (float & co2Concentration,
63
63
float & temperature,
64
- float & humidiy ) {
64
+ float & humidity ) {
65
65
int16_t localError = 0 ;
66
66
localError = awaitDataReady ();
67
67
if (localError != NO_ERROR) {
68
68
return localError;
69
69
}
70
- localError = readMeasurementData (co2Concentration, temperature, humidiy );
70
+ localError = readMeasurementData (co2Concentration, temperature, humidity );
71
71
return localError;
72
72
}
73
73
@@ -98,6 +98,7 @@ int16_t SensirionI2cScd30::stopPeriodicMeasurement() {
98
98
if (localError != NO_ERROR) {
99
99
return localError;
100
100
}
101
+ delay (10 );
101
102
return localError;
102
103
}
103
104
@@ -115,6 +116,7 @@ int16_t SensirionI2cScd30::setMeasurementInterval(uint16_t interval) {
115
116
if (localError != NO_ERROR) {
116
117
return localError;
117
118
}
119
+ delay (10 );
118
120
return localError;
119
121
}
120
122
@@ -162,7 +164,7 @@ int16_t SensirionI2cScd30::getDataReady(uint16_t& dataReadyFlag) {
162
164
163
165
int16_t SensirionI2cScd30::readMeasurementData (float & co2Concentration,
164
166
float & temperature,
165
- float & humidiy ) {
167
+ float & humidity ) {
166
168
int16_t localError = NO_ERROR;
167
169
uint8_t local_buffer[18 ] = {0 };
168
170
SensirionI2CTxFrame txFrame = SensirionI2CTxFrame::createWithUInt16Command (
@@ -181,7 +183,7 @@ int16_t SensirionI2cScd30::readMeasurementData(float& co2Concentration,
181
183
}
182
184
localError |= rxFrame.getFloat (co2Concentration);
183
185
localError |= rxFrame.getFloat (temperature);
184
- localError |= rxFrame.getFloat (humidiy );
186
+ localError |= rxFrame.getFloat (humidity );
185
187
return localError;
186
188
}
187
189
@@ -199,6 +201,7 @@ int16_t SensirionI2cScd30::activateAutoCalibration(uint16_t doActivate) {
199
201
if (localError != NO_ERROR) {
200
202
return localError;
201
203
}
204
+ delay (10 );
202
205
return localError;
203
206
}
204
207
@@ -237,6 +240,7 @@ int16_t SensirionI2cScd30::forceRecalibration(uint16_t co2RefConcentration) {
237
240
if (localError != NO_ERROR) {
238
241
return localError;
239
242
}
243
+ delay (10 );
240
244
return localError;
241
245
}
242
246
@@ -276,6 +280,7 @@ int16_t SensirionI2cScd30::setTemperatureOffset(uint16_t temperatureOffset) {
276
280
if (localError != NO_ERROR) {
277
281
return localError;
278
282
}
283
+ delay (10 );
279
284
return localError;
280
285
}
281
286
@@ -335,6 +340,7 @@ int16_t SensirionI2cScd30::setAltitudeCompensation(uint16_t altitude) {
335
340
if (localError != NO_ERROR) {
336
341
return localError;
337
342
}
343
+ delay (10 );
338
344
return localError;
339
345
}
340
346
0 commit comments