From f7ba70a03276e6e41ce4ea9db5d36d1b437ebd42 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 6 Jul 2017 22:15:28 +0200 Subject: [PATCH] MPU6K driver: Ensure that default range is always 16g by default --- src/drivers/mpu6000/mpu6000.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index 869b39c9ab..76f203056a 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -2631,7 +2631,7 @@ mpu6000_main(int argc, char *argv[]) int device_type = MPU_DEVICE_TYPE_MPU6000; int ch; enum Rotation rotation = ROTATION_NONE; - int accel_range = 8; + int accel_range = MPU6000_ACCEL_DEFAULT_RANGE_G; /* jump over start/off/etc and look at options first */ while ((ch = getopt(argc, argv, "T:XISsZzR:a:")) != EOF) {