Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mpu6050_test testI2C Hobby_Humanoid_controlor mpu6050_test ... more
Revision 1:1e0baaf91e96, committed 2013-05-08
- Comitter:
- garfieldsg
- Date:
- Wed May 08 00:34:55 2013 +0000
- Parent:
- 0:662207e34fba
- Commit message:
- Bugfix of memory issu
Changed in this revision
| I2Cdev.cpp | Show annotated file Show diff for this revision Revisions of this file |
| MPU6050.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 662207e34fba -r 1e0baaf91e96 I2Cdev.cpp
--- 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;
}
diff -r 662207e34fba -r 1e0baaf91e96 MPU6050.h
--- a/MPU6050.h Fri Jan 11 00:54:28 2013 +0000
+++ b/MPU6050.h Wed May 08 00:34:55 2013 +0000
@@ -848,7 +848,7 @@
uint8_t dmpGetGyroSensor(int16_t *data, const uint8_t* packet=0);
uint8_t dmpGetGyroSensor(VectorInt16 *v, const uint8_t* packet=0);
uint8_t dmpGetControlData(int32_t *data, const uint8_t* packet=0);
- uint8_t dmpGetTemperature(int32_t *data, const uint8_t* packet=0);
+ uint8_t dm pGetTemperature(int32_t *data, const uint8_t* packet=0);
uint8_t dmpGetGravity(int32_t *data, const uint8_t* packet=0);
uint8_t dmpGetGravity(int16_t *data, const uint8_t* packet=0);
uint8_t dmpGetGravity(VectorInt16 *v, const uint8_t* packet=0);