AP_Airspeed: 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 f7dc19554f
commit cc1fbddc95
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ bool AP_Airspeed_I2C::init(void)
_collect();
i2c_sem->give();
if (_last_sample_time_ms != 0) {
hal.scheduler->register_timer_process(AP_HAL_MEMBERPROC(&AP_Airspeed_I2C::_timer));
hal.scheduler->register_timer_process(FUNCTOR_BIND_MEMBER(&AP_Airspeed_I2C::_timer, void));
return true;
}
return false;