lis3mdl-arduino icon indicating copy to clipboard operation
lis3mdl-arduino copied to clipboard

There should be no Wire.endTransmission() after the Wire.requestFrom() and no timeout.

Open Koepel opened this issue 8 years ago • 0 comments

A Wire.endTransmission is only needed when writing data, it should not be used with Wire.requestFrom().

There is no need for a timeout after Wire.requestFrom(). When the Wire.requestFrom() returns, the complete I2C transmission has already finished, and the received data is waiting in the receive buffer inside the Wire library.

Koepel avatar Oct 08 '16 09:10 Koepel