AntennaTracker: use ARRAY_SIZE macro

This commit is contained in:
Lucas De Marchi 2015-07-06 12:30:40 -03:00 committed by Andrew Tridgell
parent 8f74d7d982
commit e62c653362
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void Tracker::setup()
init_tracker();
// initialise the main loop scheduler
scheduler.init(&scheduler_tasks[0], sizeof(scheduler_tasks)/sizeof(scheduler_tasks[0]));
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks));
}
/**