From bf639b486d006088ba98b441ef14ee44221644ef Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Tue, 3 May 2016 00:06:24 +0200 Subject: [PATCH] LP-304 - declare counters as static --- flight/pios/inc/pios_instrumentation_helper.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flight/pios/inc/pios_instrumentation_helper.h b/flight/pios/inc/pios_instrumentation_helper.h index 819a88aaa..2fffbdf4b 100644 --- a/flight/pios/inc/pios_instrumentation_helper.h +++ b/flight/pios/inc/pios_instrumentation_helper.h @@ -2,7 +2,8 @@ ****************************************************************************** * * @file pios_instrumentation_helper.h - * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2014. + * @author The LibrePilot Project, http://www.librepilot.org, Copyright (c) 2016 + * The OpenPilot Team, http://www.openpilot.org Copyright (C) 2014. * @brief Macros to easily add optional performance monitoring to a module * * @see The GNU Public License (GPL) Version 3 @@ -84,7 +85,7 @@ /** * include the following macro together with modules variable declaration */ -#define PERF_DEFINE_COUNTER(x) pios_counter_t x +#define PERF_DEFINE_COUNTER(x) static pios_counter_t x /** * this mast be called at some module init code