diff --git a/APMrover2/APMrover2.cpp b/APMrover2/APMrover2.cpp index 2f39253f91..548d9cc652 100644 --- a/APMrover2/APMrover2.cpp +++ b/APMrover2/APMrover2.cpp @@ -105,7 +105,7 @@ void Rover::setup() init_ardupilot(); // initialise the main loop scheduler - scheduler.init(&scheduler_tasks[0], sizeof(scheduler_tasks)/sizeof(scheduler_tasks[0]), this); + scheduler.init(&scheduler_tasks[0], sizeof(scheduler_tasks)/sizeof(scheduler_tasks[0])); } /*