AKstudios / CCS811-library

This is a library for the CCS811 digital TVOC/eCO2 Sensor by CCMOSS/AMS
Apache License 2.0
24 stars 10 forks source link

No need to wait after Wire.requestFrom(). #4

Closed Koepel closed 6 years ago

Koepel commented 6 years ago

In the file "CCS811.cpp", the Wire.requestFrom() is followed by a delay(1);. That delay can be removed.

When the Wire.requestFrom() function returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.

AKstudios commented 6 years ago

Thanks, delay is now removed.