AP_Notify: 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 3aa46e3213
commit 9764bb2452
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ bool OreoLED_PX4::init()
// set overall health
_overall_health = true;
// register timer
hal.scheduler->register_io_process(AP_HAL_MEMBERPROC(&OreoLED_PX4::update_timer));
hal.scheduler->register_io_process(FUNCTOR_BIND_MEMBER(&OreoLED_PX4::update_timer, void));
}
// return health

View File

@ -43,7 +43,7 @@ bool ToshibaLED_PX4::hw_init()
ioctl(_rgbled_fd, RGBLED_SET_MODE, (unsigned long)RGBLED_MODE_ON);
last.v = 0;
next.v = 0;
hal.scheduler->register_io_process(AP_HAL_MEMBERPROC(&ToshibaLED_PX4::update_timer));
hal.scheduler->register_io_process(FUNCTOR_BIND_MEMBER(&ToshibaLED_PX4::update_timer, void));
return true;
}