AP_InertialSensor: updates for AP_HAL::MemberProc

This commit is contained in:
Andrew Tridgell 2013-09-30 17:00:54 +10:00
parent 942ae70651
commit dda68bddcb

View File

@ -228,7 +228,7 @@ uint16_t AP_InertialSensor_MPU6000::_init_sensor( Sample_rate sample_rate )
_read_data_transaction();
// start the timer process to read samples
hal.scheduler->register_timer_process(reinterpret_cast<AP_HAL::TimedProc>(&AP_InertialSensor_MPU6000::_poll_data), this);
hal.scheduler->register_timer_process(AP_HAL_MEMBERPROC(&AP_InertialSensor_MPU6000::_poll_data));
#if MPU6000_DEBUG
_dump_registers();