AP_InertialSensor: fixed instance usage in set_gyro_oversampling()

thanks Francisco!
This commit is contained in:
Andrew Tridgell 2017-05-02 08:27:11 +10:00
parent 112b22516a
commit 519a293af9

View File

@ -813,7 +813,7 @@ void AP_InertialSensor_Invensense::_set_filter_register(void)
// for logging purposes set the oversamping rate
_set_accel_oversampling(_accel_instance, MPU_FIFO_DOWNSAMPLE_COUNT/2);
_set_gyro_oversampling(_accel_instance, MPU_FIFO_DOWNSAMPLE_COUNT);
_set_gyro_oversampling(_gyro_instance, MPU_FIFO_DOWNSAMPLE_COUNT);
}
}