Skip to content

Commit d1d0819

Browse files
committed
Merge branch 'LKD-377_adjust-timings' into 'master'
Increase timing for single shot and self-test See merge request MSO-SW/drivers/raspberry-pi/raspberry-pi-i2c-scd4x!11
2 parents b08309b + 9faa46e commit d1d0819

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9+
## Unreleased
10+
11+
### Changed
12+
13+
* Increase timing for single shot from 1350ms to 5000ms
14+
* Increase timing for self test from 5500ms to 10000ms
15+
16+
917
## [0.2.1] - 2021-03-01
1018

1119
### Fixed

scd4x_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ int16_t scd4x_perform_self_test(uint16_t* sensor_status) {
360360
return error;
361361
}
362362

363-
sensirion_i2c_hal_sleep_usec(5500000);
363+
sensirion_i2c_hal_sleep_usec(10000000);
364364

365365
error = sensirion_i2c_read_data_inplace(SCD4X_I2C_ADDRESS, &buffer[0], 2);
366366
if (error) {
@@ -408,7 +408,7 @@ int16_t scd4x_measure_single_shot() {
408408
if (error) {
409409
return error;
410410
}
411-
sensirion_i2c_hal_sleep_usec(1350000);
411+
sensirion_i2c_hal_sleep_usec(5000000);
412412
return NO_ERROR;
413413
}
414414

0 commit comments

Comments
 (0)