mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 15:04:54 +01:00
Add delay to improve stability (#2793)
This commit is contained in:
parent
e55506f9db
commit
a5fb036011
1 changed files with 1 additions and 0 deletions
|
@ -200,6 +200,7 @@ bool SCD30Component::is_data_ready_() {
|
||||||
if (!this->write_command_(SCD30_CMD_GET_DATA_READY_STATUS)) {
|
if (!this->write_command_(SCD30_CMD_GET_DATA_READY_STATUS)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
delay(4);
|
||||||
uint16_t is_data_ready;
|
uint16_t is_data_ready;
|
||||||
if (!this->read_data_(&is_data_ready, 1)) {
|
if (!this->read_data_(&is_data_ready, 1)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue