mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AP_Terrain: 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
9764bb2452
commit
6ae2591cad
@ -75,7 +75,7 @@ void AP_Terrain::schedule_disk_io(void)
|
|||||||
|
|
||||||
if (!timer_setup) {
|
if (!timer_setup) {
|
||||||
timer_setup = true;
|
timer_setup = true;
|
||||||
hal.scheduler->register_io_process(AP_HAL_MEMBERPROC(&AP_Terrain::io_timer));
|
hal.scheduler->register_io_process(FUNCTOR_BIND_MEMBER(&AP_Terrain::io_timer, void));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (disk_io_state) {
|
switch (disk_io_state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user