AP_InertialSensor: BMI160: Register poll function with the timer lock
This commit is contained in:
parent
319856b8c7
commit
dd36952efe
@ -177,10 +177,10 @@ void AP_InertialSensor_BMI160::start()
|
||||
_accel_instance = _imu.register_accel(BMI160_ODR_TO_HZ(BMI160_ODR));
|
||||
_gyro_instance = _imu.register_gyro(BMI160_ODR_TO_HZ(BMI160_ODR));
|
||||
|
||||
hal.scheduler->resume_timer_procs();
|
||||
|
||||
hal.scheduler->register_timer_process(
|
||||
FUNCTOR_BIND_MEMBER(&AP_InertialSensor_BMI160::_poll_data, void));
|
||||
|
||||
hal.scheduler->resume_timer_procs();
|
||||
}
|
||||
|
||||
bool AP_InertialSensor_BMI160::update()
|
||||
|
Loading…
Reference in New Issue
Block a user