diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-02-06 08:37:58 +1100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-08 16:20:29 +0100 |
commit | 508d6d2b4f86db5224b6201cb5a8bda3b6e2a2b8 (patch) | |
tree | 630d8f08da89e74ae05a10c8e02dcb213a170320 /apps/drivers/mpu6000/mpu6000.cpp | |
parent | 3e5cd26777aa209d6568036d43b33b543a364bee (diff) | |
download | px4-firmware-508d6d2b4f86db5224b6201cb5a8bda3b6e2a2b8.tar.gz px4-firmware-508d6d2b4f86db5224b6201cb5a8bda3b6e2a2b8.tar.bz2 px4-firmware-508d6d2b4f86db5224b6201cb5a8bda3b6e2a2b8.zip |
drivers/mpu6000: add default product ID case
Diffstat (limited to 'apps/drivers/mpu6000/mpu6000.cpp')
-rw-r--r-- | apps/drivers/mpu6000/mpu6000.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/drivers/mpu6000/mpu6000.cpp b/apps/drivers/mpu6000/mpu6000.cpp index 55b7cfa85..574300639 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; |