Ported from Arduino Library by Szymon Gaertig: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050 added Magnetometer support
Fork of MPU6050 by
Diff: I2Cdev.cpp
- Revision:
- 1:1e0baaf91e96
- Parent:
- 0:662207e34fba
- Child:
- 2:f8bfb37b2e1f
--- a/I2Cdev.cpp Fri Jan 11 00:54:28 2013 +0000 +++ b/I2Cdev.cpp Wed May 08 00:34:55 2013 +0000 @@ -137,6 +137,7 @@ for(int i =0; i < length; i++) { data[i] = redData[i]; } + free (redData); return length; }