Skip to content

Commit

Permalink
mpu9250: remove define from integrator interval when using i2c
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePettenuzzo committed May 17, 2018
1 parent cebb857 commit 5d5043c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/imu/mpu9250/mpu9250.cpp
Expand Up @@ -267,8 +267,8 @@ MPU9250::init()
*/
if (is_i2c()) {
_sample_rate = 200;
_accel_int.set_autoreset_interval(1000000 / MPU9250_ACCEL_MAX_OUTPUT_RATE / 4);
_gyro_int.set_autoreset_interval(1000000 / MPU9250_GYRO_MAX_OUTPUT_RATE / 4);
_accel_int.set_autoreset_interval(1000000 / 1000);
_gyro_int.set_autoreset_interval(1000000 / 1000);
}

int ret = probe();
Expand Down

0 comments on commit 5d5043c

Please sign in to comment.