Update xsns_64_aht10.ino

This commit is contained in:
device111 2020-02-18 09:56:23 +01:00
parent 2e0a06c19a
commit b423c9716a

View File

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