mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 23:37:16 +00:00
Update xsns_64_aht10.ino
This commit is contained in:
parent
2e0a06c19a
commit
b423c9716a
@ -91,7 +91,6 @@ bool AHT10Read(void)
|
|||||||
unsigned char readStatus(void)
|
unsigned char readStatus(void)
|
||||||
{
|
{
|
||||||
unsigned char result = 0;
|
unsigned char result = 0;
|
||||||
|
|
||||||
Wire.requestFrom(AHT10_ADDR, 1);
|
Wire.requestFrom(AHT10_ADDR, 1);
|
||||||
result = Wire.read();
|
result = Wire.read();
|
||||||
return result;
|
return result;
|
||||||
@ -100,9 +99,7 @@ unsigned char readStatus(void)
|
|||||||
void AHT10Detect(void)
|
void AHT10Detect(void)
|
||||||
{
|
{
|
||||||
if (I2cActive(AHT10_ADDR))
|
if (I2cActive(AHT10_ADDR))
|
||||||
{
|
{return;}
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (begin())
|
if (begin())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user