From b3f013b48386a8876b2f827f57f85cca40d43dd8 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 7 Aug 2020 17:24:02 -0400 Subject: [PATCH] TS SD integration #1653 --- firmware/console/binary/tunerstudio.h | 3 ++- firmware/controllers/engine_controller.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/console/binary/tunerstudio.h b/firmware/console/binary/tunerstudio.h index 1c51bbc0a4..a7a2b19791 100644 --- a/firmware/console/binary/tunerstudio.h +++ b/firmware/console/binary/tunerstudio.h @@ -29,7 +29,8 @@ typedef struct { extern tunerstudio_counters_s tsState; -#define CONNECTIVITY_THREAD_STACK (2 * UTILITY_THREAD_STACK_SIZE) +// SD protocol file removal is one of the stack consuming use-cases +#define CONNECTIVITY_THREAD_STACK (3 * UTILITY_THREAD_STACK_SIZE) /** * handle non CRC wrapped command diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index abc272f3f8..b83692c749 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -698,7 +698,7 @@ void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) * UNUSED_SIZE constants. */ #ifndef RAM_UNUSED_SIZE -#define RAM_UNUSED_SIZE 9600 +#define RAM_UNUSED_SIZE 8600 #endif #ifndef CCM_UNUSED_SIZE #define CCM_UNUSED_SIZE 2900