1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 10:50:58 +01:00

SGP40 - Reduce delay in measurement (#2996)

This commit is contained in:
Martin 2022-01-04 22:05:19 +01:00 committed by GitHub
parent ffea3597f4
commit ed5930e934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ uint16_t SGP40Component::measure_raw_() {
ESP_LOGD(TAG, "write error");
return UINT16_MAX;
}
delay(250); // NOLINT
delay(30);
uint16_t raw_data[1];
if (!this->read_data_(raw_data, 1)) {