Browse Source

AP_HAL_Linux: use functor macros

Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
mission-4.1.18
Lucas De Marchi 10 years ago committed by Andrew Tridgell
parent
commit
4c97d92982
  1. 2
      libraries/AP_HAL_Linux/AnalogIn_Navio.cpp

2
libraries/AP_HAL_Linux/AnalogIn_Navio.cpp

@ -78,7 +78,7 @@ void NavioAnalogIn::init(void* implspecific) @@ -78,7 +78,7 @@ void NavioAnalogIn::init(void* implspecific)
{
_adc->init();
hal.scheduler->suspend_timer_procs();
hal.scheduler->register_timer_process( AP_HAL_MEMBERPROC(&NavioAnalogIn::_update));
hal.scheduler->register_timer_process(FUNCTOR_BIND_MEMBER(&NavioAnalogIn::_update, void));
hal.scheduler->resume_timer_procs();
}

Loading…
Cancel
Save