adafruit/Adafruit_LSM303 — pull request #1 by JohnPetersen (2013-06-18 05:49:05+00:00)
Title: A Small Improvment

Thank you for the great hardware, libraries, examples and the awesome articles on the Learning System!

The begin() method always returned true regardless of the actual message write results. This change updates write8() to return the results of the Wire.endTransmission() method. This allows callers to check for non-zero error values. The begin() method was updated to use this new return value to return an accurate result.