Browse Source

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

sbg
Lorenz Meier 8 years ago
parent
commit
f7ba70a032
  1. 2
      src/drivers/mpu6000/mpu6000.cpp

2
src/drivers/mpu6000/mpu6000.cpp

@ -2631,7 +2631,7 @@ mpu6000_main(int argc, char *argv[])
int device_type = MPU_DEVICE_TYPE_MPU6000; int device_type = MPU_DEVICE_TYPE_MPU6000;
int ch; int ch;
enum Rotation rotation = ROTATION_NONE; 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 */ /* jump over start/off/etc and look at options first */
while ((ch = getopt(argc, argv, "T:XISsZzR:a:")) != EOF) { while ((ch = getopt(argc, argv, "T:XISsZzR:a:")) != EOF) {

Loading…
Cancel
Save