mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
AP_Scheduler: use APM_BUILD_DELEGATES
This commit is contained in:
parent
e7ba2c8d93
commit
0847bd2608
@ -38,7 +38,7 @@
|
||||
#include <AP_HAL.h>
|
||||
#include <AP_Vehicle.h>
|
||||
|
||||
#if APM_BUILD_TYPE(APM_BUILD_APMrover2) && defined(__AVR__)
|
||||
#if APM_BUILD_DELEGATES && defined(__AVR__)
|
||||
#define AP_SCHEDULER_USE_DELEGATE_PTR 1
|
||||
#else
|
||||
#define AP_SCHEDULER_USE_DELEGATE_PTR 0
|
||||
@ -47,7 +47,7 @@
|
||||
class AP_Scheduler
|
||||
{
|
||||
public:
|
||||
#if APM_BUILD_TYPE(APM_BUILD_APMrover2)
|
||||
#if APM_BUILD_DELEGATES
|
||||
DELEGATE_FUNCTION_VOID_TYPEDEF(task_fn_t);
|
||||
#else
|
||||
typedef void (*task_fn_t)(void);
|
||||
|
Loading…
Reference in New Issue
Block a user