MPU6K driver: Ensure that default range is always 16g by default

This commit is contained in:
Lorenz Meier
2017-07-06 22:15:28 +02:00
parent 1c7833e3b1
commit f7ba70a032
+1 -1
View File
@@ -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) {