mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
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:
parent
435613de69
commit
dcf992b558
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user