Fix 2000dps gyro rate setbits

This commit is contained in:
Nate Weibley authored and Julian Oes committed 2016-10-05 08:58:57 +02:00
1 parent 57d7a00261
commit fde165b4f1
1 file changed
+1 -1
+1 -1
View File
@@ -1040,7 +1040,7 @@ BMI160::set_gyro_range(unsigned max_dps)
} else if (max_dps <= 2000) {
max_gyro_dps = 2000;
lsb_per_dps = 16.4;
setbits |= BMI_GYRO_RANGE_1000_DPS;
setbits |= BMI_GYRO_RANGE_2000_DPS;
} else {
return -EINVAL;