From edb79a0dc75668a656dc9151b0828ef2bdc941f8 Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 6 Feb 2019 23:30:53 -0500 Subject: [PATCH] flexibility --- firmware/controllers/engine_controller.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 22a7d781c8..d686fd253a 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -756,8 +756,14 @@ void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) // these two variables are here only to let us know how much RAM is available, also these // help to notice when RAM usage goes up - if a code change adds to RAM usage these variables would fail // linking process which is the way to raise the alarm -static char UNUSED_RAM_SIZE[10200]; -static char UNUSED_CCM_SIZE[7000] CCM_OPTIONAL; +#ifndef RAM_UNUSED_SIZE +#define RAM_UNUSED_SIZE 10200 +#endif +#ifndef CCM_UNUSED_SIZE +#define CCM_UNUSED_SIZE 7000 +#endif +static char UNUSED_RAM_SIZE[RAM_UNUSED_SIZE]; +static char UNUSED_CCM_SIZE[CCM_UNUSED_SIZE] CCM_OPTIONAL; /** * See also VCS_VERSION