From 72290df8947e04c4294fb16379b085feeeff7b2b Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 26 Aug 2020 23:08:48 -0400 Subject: [PATCH] a bit of flexibility --- firmware/config/stm32f4ems/efifeatures.h | 9 ++++++++- firmware/development/sensor_chart.cpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 3b92f3e923..c6335f0c52 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -36,7 +36,14 @@ #define EFI_ENABLE_CRITICAL_ENGINE_STOP TRUE #define EFI_ENABLE_ENGINE_WARNING TRUE -#define EFI_USE_CCM TRUE +#if !defined(EFI_ENABLE_ASSERTS) + #define EFI_USE_CCM TRUE +#endif + +#ifndef SC_BUFFER_SIZE +#define SC_BUFFER_SIZE 4000 +#endif + /** * if you have a 60-2 trigger, or if you just want better performance, you diff --git a/firmware/development/sensor_chart.cpp b/firmware/development/sensor_chart.cpp index a9da392abf..ff97975f68 100644 --- a/firmware/development/sensor_chart.cpp +++ b/firmware/development/sensor_chart.cpp @@ -15,7 +15,7 @@ #include "status_loop.h" #if EFI_TEXT_LOGGING -static char LOGGING_BUFFER[4000] CCM_OPTIONAL; +static char LOGGING_BUFFER[SC_BUFFER_SIZE] CCM_OPTIONAL; static Logging scLogging("analog chart", LOGGING_BUFFER, sizeof(LOGGING_BUFFER)); #endif /* EFI_TEXT_LOGGING */