1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Update MPU6050 so it works with later versions.

This commit is contained in:
Dominic Clifton 2015-08-05 02:15:42 +01:00 committed by borisbstyle
parent cf7c9d4100
commit b1ba72c162

View file

@ -173,6 +173,8 @@ static void mpu6050FindRevision(void)
mpuDetectionResult.resolution = MPU_HALF_RESOLUTION;
} else if (revision == 2) {
mpuDetectionResult.resolution = MPU_FULL_RESOLUTION;
} else if ((revision == 3) || (revision == 7)) {
mpuDetectionResult.resolution = MPU_FULL_RESOLUTION;
} else {
failureMode(FAILURE_ACC_INCOMPATIBLE);
}