AP_HAL_AVR: 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:
Lucas De Marchi 2015-05-24 20:24:11 -03:00 committed by Andrew Tridgell
parent 435613de69
commit dcf992b558

View File

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