Razor-AHRS / razor-9dof-ahrs

AHRS Firmware for the SparkFun 9DOF Razor IMU and SparkFun 9DOF Sensor Stick
Other
450 stars 264 forks source link

Wire.requestFrom() should not have Wire.beginTransmission() or Wire.endTransmission(). #61

Open Koepel opened 7 years ago

Koepel commented 7 years ago

The Wire.beginTransmission() and Wire.endTransmission() are only used when writing data.

In the file "razor-9dof-ahrs/Arduino/Razor_AHRS/Sensors.ino", the Wire.requestFrom() is in three places encapsulated by Wire.beginTransmission() and Wire.endTransmission(). Those Wire.beginTransmission() and Wire.endTransmission() can be removed.