Browse Source

AP_HAL_FLYMAPLE: 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.
master
Lucas De Marchi 10 years ago committed by Andrew Tridgell
parent
commit
9b7c1d8f93
  1. 2
      libraries/AP_HAL_FLYMAPLE/AnalogIn.cpp

2
libraries/AP_HAL_FLYMAPLE/AnalogIn.cpp

@ -38,7 +38,7 @@ FLYMAPLEAnalogIn::FLYMAPLEAnalogIn() : @@ -38,7 +38,7 @@ FLYMAPLEAnalogIn::FLYMAPLEAnalogIn() :
void FLYMAPLEAnalogIn::init(void* machtnichts) {
/* Register FLYMAPLEAnalogIn::_timer_event with the scheduler. */
hal.scheduler->register_timer_process(AP_HAL_MEMBERPROC(&FLYMAPLEAnalogIn::_timer_event));
hal.scheduler->register_timer_process(FUNCTOR_BIND_MEMBER(&FLYMAPLEAnalogIn::_timer_event, void));
/* Register each private channel with FLYMAPLEAnalogIn. */
_register_channel(&_vcc);
}

Loading…
Cancel
Save