We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17d2e2f commit 7c97231Copy full SHA for 7c97231
libraries/CurieIMU/src/CurieIMU.cpp
@@ -47,7 +47,12 @@ bool CurieIMUClass::begin()
47
* MakgetGyroRatee sure the device is connected and responds as expected.
48
* @return True if connection is valid, false otherwise
49
*/
50
- return (CURIE_IMU_CHIP_ID == getDeviceID());
+ if (CURIE_IMU_CHIP_ID != getDeviceID())
51
+ return false;
52
+
53
+ accel_range = (float) getAccelerometerRange();
54
+ gyro_range = (float) getGyroRange();
55
+ return true;
56
}
57
58
void CurieIMUClass::end()
0 commit comments