AP_Scheduler: use ARRAY_SIZE macro

This commit is contained in:
Lucas De Marchi 2015-07-20 16:53:47 -03:00 committed by Randy Mackay
parent fdc6a75124
commit d8b70dc0c5

View File

@ -83,7 +83,7 @@ void SchedTest::setup(void)
AP_InertialSensor::RATE_50HZ);
// initialise the scheduler
scheduler.init(&scheduler_tasks[0], sizeof(scheduler_tasks)/sizeof(scheduler_tasks[0]));
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks));
}
void SchedTest::loop(void)