From b1ba72c162cb6ff4efa91dfb7920ae20706426ad Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Wed, 5 Aug 2015 02:15:42 +0100 Subject: [PATCH] Update MPU6050 so it works with later versions. --- src/main/drivers/accgyro_mpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/drivers/accgyro_mpu.c b/src/main/drivers/accgyro_mpu.c index 2df22a2f71..113605edfb 100644 --- a/src/main/drivers/accgyro_mpu.c +++ b/src/main/drivers/accgyro_mpu.c @@ -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); }