HEPTA-Sat Training 2017~2018 / Hepta9axis

Dependents:   Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more

Fork of Hepta9axis by CLTP 8

Files at this revision

API Documentation at this revision

Comitter:
hepta2ume
Date:
Sat Aug 05 13:35:52 2017 +0000
Parent:
0:5aaec0996753
Child:
2:306058b9d04e
Commit message:
test

Changed in this revision

Hepta9axis.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Hepta9axis.cpp	Wed Jul 19 08:15:01 2017 +0000
+++ b/Hepta9axis.cpp	Sat Aug 05 13:35:52 2017 +0000
@@ -274,8 +274,8 @@
     MPU9250.write(addr_accel_gyro|0x01);
     gyl = MPU9250.read(0);
     MPU9250.stop();
-    sprintf( g1, "%02X", ((gyh)) & 0xFF);
-    sprintf( g2, "%02X", ((gyl)) & 0xFF);
+    sprintf( g1, "%02X", (gyh) & 0xFF);
+    sprintf( g2, "%02X", (gyl) & 0xFF);
     gy_u16[0]=g1[0];
     gy_u16[1]=g1[1];
     gy_u16[2]=g2[0];