From e62c653362f950cc0ed1c58cd9cf441ac944ec9e Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 6 Jul 2015 12:30:40 -0300 Subject: [PATCH] AntennaTracker: use ARRAY_SIZE macro --- AntennaTracker/AntennaTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /**