From 598f5b241f3f1b4746559ea82178f8da058031cf Mon Sep 17 00:00:00 2001 From: krunkel Date: Tue, 23 Nov 2021 09:26:16 +0100 Subject: [PATCH] Remove unnecessary write in AHT10 update (#2675) --- esphome/components/aht10/aht10.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/esphome/components/aht10/aht10.cpp b/esphome/components/aht10/aht10.cpp index e5e04ac181..78f98cb14f 100644 --- a/esphome/components/aht10/aht10.cpp +++ b/esphome/components/aht10/aht10.cpp @@ -73,13 +73,6 @@ void AHT10Component::update() { bool success = false; for (int i = 0; i < AHT10_ATTEMPTS; ++i) { ESP_LOGVV(TAG, "Attempt %d at %6u", i, millis()); - delayMicroseconds(4); - - uint8_t reg = 0; - if (this->write(®, 1) != i2c::ERROR_OK) { - ESP_LOGD(TAG, "Communication with AHT10 failed, waiting..."); - continue; - } delay(delay_ms); if (this->read(data, 6) != i2c::ERROR_OK) { ESP_LOGD(TAG, "Communication with AHT10 failed, waiting...");