Add delay to improve stability (#2793)

This commit is contained in:
Conclusio 2021-11-28 20:13:42 +01:00 committed by GitHub
parent 10f830c3ef
commit 7afcb0fb04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,7 @@ bool SCD30Component::is_data_ready_() {
if (!this->write_command_(SCD30_CMD_GET_DATA_READY_STATUS)) {
return false;
}
delay(4);
uint16_t is_data_ready;
if (!this->read_data_(&is_data_ready, 1)) {
return false;