From 58935bf70895b83da16aefa2912cab2ea9cc9d37 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 31 Oct 2021 14:27:34 +0100 Subject: [PATCH] Fix ESP32 Core 2.x HTU detection speed --- tasmota/xsns_08_htu21.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xsns_08_htu21.ino b/tasmota/xsns_08_htu21.ino index 18d6c2152..83a3d335f 100644 --- a/tasmota/xsns_08_htu21.ino +++ b/tasmota/xsns_08_htu21.ino @@ -204,7 +204,7 @@ bool HtuRead(void) void HtuDetect(void) { Htu.address = HTU21_ADDR; - if (I2cActive(Htu.address)) { return; } + if (!I2cSetDevice(Htu.address)) { return; } Htu.type = HtuReadDeviceId(); if (Htu.type) {