AP_InertialSensor: BMI160: Register poll function with the timer lock

This commit is contained in:
José Roberto de Souza 2016-07-20 15:48:19 -03:00 committed by Lucas De Marchi
parent 319856b8c7
commit dd36952efe

View File

@ -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()