Update AHT10.cpp

This commit is contained in:
enjoyneering 2020-01-21 14:15:48 -05:00 committed by GitHub
parent fe7d409031
commit 22614a8a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ uint8_t AHT10::readRawData()
#endif
if (Wire.available() != 6)
{
_rawDataBuffer[0] = AHT10_ERROR; //for condition when AHT10_FORCE_READ_DATA is not used
_rawDataBuffer[0] = AHT10_ERROR; //for condition when AHT10_USE_READ_DATA is used
return AHT10_ERROR; //check rxBuffer & error handler, collision on the i2c bus
}