mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Frsky_Telem: 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
95627cf412
commit
435613de69
@ -84,7 +84,7 @@ void AP_Frsky_Telem::init(const AP_SerialManager& serial_manager)
|
|||||||
_mode_data_ready = false;
|
_mode_data_ready = false;
|
||||||
_sats_data_ready = false;
|
_sats_data_ready = false;
|
||||||
_sport_status = 0;
|
_sport_status = 0;
|
||||||
hal.scheduler->register_io_process(AP_HAL_MEMBERPROC(&AP_Frsky_Telem::sport_tick));
|
hal.scheduler->register_io_process(FUNCTOR_BIND_MEMBER(&AP_Frsky_Telem::sport_tick, void));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_port != NULL) {
|
if (_port != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user