mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-21 09:46:31 +00:00
Fix ESP32 Core 2.x HTU detection speed
This commit is contained in:
parent
8db8383d59
commit
58935bf708
@ -204,7 +204,7 @@ bool HtuRead(void)
|
|||||||
void HtuDetect(void)
|
void HtuDetect(void)
|
||||||
{
|
{
|
||||||
Htu.address = HTU21_ADDR;
|
Htu.address = HTU21_ADDR;
|
||||||
if (I2cActive(Htu.address)) { return; }
|
if (!I2cSetDevice(Htu.address)) { return; }
|
||||||
|
|
||||||
Htu.type = HtuReadDeviceId();
|
Htu.type = HtuReadDeviceId();
|
||||||
if (Htu.type) {
|
if (Htu.type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user