SparkFun_MAX17043_Particle_Library icon indicating copy to clipboard operation
SparkFun_MAX17043_Particle_Library copied to clipboard

No need to wait for data after Wire.requestFrom()

Open Koepel opened this issue 9 years ago • 0 comments

There is a while-loop with a delay after the Wire.requestFrom() call. That while-loop is not needed and that delay is not needed.

When the Wire.requestFrom() function returns, the I2C transaction has completely finished and the received data is in the receive buffer in the Wire library. The Wire.read() only reads data from that buffer.

Koepel avatar Aug 20 '16 22:08 Koepel