Hepta_9axis_(0719)

Dependents:   HEPTA_9axis HEPTA2_assembly_0720 HEPTA2_ALL HEPTA2_ALL_ver0803_02 ... more

Files at this revision

API Documentation at this revision

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

Changed in this revision

Hepta9axis.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5aaec0996753 -r 5b35162b3b6a Hepta9axis.cpp
--- 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];