AP_Scheduler: use ARRAY_SIZE macro
This commit is contained in:
parent
fdc6a75124
commit
d8b70dc0c5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user