For Hepta-Sat Lite
Diff: Hepta9axis.cpp
- Revision:
- 1:5b35162b3b6a
- Parent:
- 0:5aaec0996753
- Child:
- 2:306058b9d04e
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];