@ -87,11 +87,7 @@ void AP_Scheduler::run(uint16_t time_available)
task_fn_t func;
pgm_read_block(&_tasks[i].function, &func, sizeof(func));
current_task = i;
#if APM_BUILD_FUNCTOR
func();
#else
#endif
current_task = -1;
// record the tick counter when we ran. This drives
@ -41,11 +41,7 @@
class AP_Scheduler
{
public:
FUNCTOR_TYPEDEF(task_fn_t, void);
typedef void (*task_fn_t)(void);
struct Task {
task_fn_t function;