From 508d6d2b4f86db5224b6201cb5a8bda3b6e2a2b8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Feb 2013 08:37:58 +1100 Subject: [PATCH] drivers/mpu6000: add default product ID case --- apps/drivers/mpu6000/mpu6000.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/drivers/mpu6000/mpu6000.cpp b/apps/drivers/mpu6000/mpu6000.cpp index 55b7cfa85c..5743006394 100644 --- a/apps/drivers/mpu6000/mpu6000.cpp +++ b/apps/drivers/mpu6000/mpu6000.cpp @@ -418,6 +418,9 @@ MPU6000::init() case MPU6000_REV_D8: case MPU6000_REV_D9: case MPU6000_REV_D10: + // default case to cope with new chip revisions, which + // presumably won't have the accel scaling bug + default: // Accel scale 8g (4096 LSB/g) write_reg(MPUREG_ACCEL_CONFIG, 2 << 3); break;