diff --git a/AntennaTracker/AntennaTracker.cpp b/AntennaTracker/AntennaTracker.cpp index 1fbc2c4a3f..bfce2c5497 100644 --- a/AntennaTracker/AntennaTracker.cpp +++ b/AntennaTracker/AntennaTracker.cpp @@ -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)); } /**