AP_ADC: updates for AP_HAL::MemberProc

This commit is contained in:
Andrew Tridgell 2013-09-30 17:01:48 +10:00
parent 2095b2a2d7
commit d83dbb38b4
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ void AP_ADC_ADS7844::Init()
_ch6_last_sample_time_micros = hal.scheduler->micros();
hal.scheduler->register_timer_process( reinterpret_cast<AP_HAL::TimedProc>(&AP_ADC_ADS7844::read), this );
hal.scheduler->register_timer_process(AP_HAL_MEMBERPROC(&AP_ADC_ADS7844::read));
hal.scheduler->resume_timer_procs();
}

View File

@ -49,7 +49,7 @@ AP_ADC_HIL::AP_ADC_HIL()
void AP_ADC_HIL::Init()
{
hal.scheduler->register_timer_process( reinterpret_cast<AP_HAL::TimedProc>(&AP_ADC_HIL::read), this);
hal.scheduler->register_timer_process( AP_HAL_MEMBERPROC(&AP_ADC_HIL::read));
}
// Read one channel value