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 */