sparkfun / SparkFun_ADXL345_Arduino_Library

Arduino Library for the ADXL345
46 stars 52 forks source link

No Wire.endTransmission() needed after Wire.requestFrom(). #5

Closed Koepel closed 4 years ago

Koepel commented 7 years ago

In the file "SparkFun_ADXL345.cpp", in the function "readFromI2C()", there is a Wire.endTransmission() after the Wire.requestFrom(). The Wire.endTransmission() should only be used when writing data, because the Wire.requestFrom() is a complete i2c session on its own.

loricrotser commented 4 years ago

Fixed.