hahaha
Dependencies: mbed
Diff: MPU9250.h
- Revision:
- 2:ce3ee4bc8cf7
- Parent:
- 0:a291977ec0b1
--- a/MPU9250.h Tue Dec 06 06:11:54 2016 +0000 +++ b/MPU9250.h Tue Dec 06 12:19:49 2016 +0000 @@ -225,8 +225,6 @@ float q[4] = {1.0f, 0.0f, 0.0f, 0.0f}; // vector to hold quaternion float eInt[3] = {0.0f, 0.0f, 0.0f}; // vector to hold integral error for Mahony method -Serial apc(USBTX,USBRX); - class MPU9250 { protected: @@ -250,7 +248,7 @@ char data_write[1]; data_write[0] = subAddress; i2c.write(address, data_write, 1, 1); // no stop - i2c.read(address, data, 1, 0); + i2c.read(address, data, 1, 0); return data[0]; }