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.
This commit is contained in:
parent
dcf992b558
commit
9b7c1d8f93
@ -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…
Reference in New Issue
Block a user