Fix ESP32 Core 2.x HTU detection speed

This commit is contained in:
Theo Arends 2021-10-31 14:27:34 +01:00
parent 8db8383d59
commit 58935bf708

View File

@ -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) {