jrowberg/i2cdevlib — pull request #44 by snoeg (2013-08-19 15:07:53+00:00)
Title: Removed unnecessary endTransmission() after requestFrom() for "ARDUINO > 100".

Hi,

I'm new to Git, but I though this would be a good way to let you know the following: I've played around with the MPU-6050 and noticed unnecessary traffic when deciphering the I2C signal on my scope. I traced it to the endTransmission() lines now removed from readBytes() and readWords().

The requestFrom() in the Wire library reads the data to a buffer and sends a STOP on the I2C bus all in one go. The endTransmission() after that only sent a new START, address+w followed by STOP after receiving ACK on the address.

Hope this helps and thank you for MPU-6050 library.