diff --git a/firmware/console/eficonsole.cpp b/firmware/console/eficonsole.cpp index 58c3dd4344..5ec3218e6b 100644 --- a/firmware/console/eficonsole.cpp +++ b/firmware/console/eficonsole.cpp @@ -111,6 +111,7 @@ static void sayHello(void) { chThdSleepMilliseconds(5); } +#if CH_DBG_THREADS_PROFILING && CH_DBG_FILL_THREADS static uintptr_t CountFreeStackSpace(const void* wabase) { const uint8_t* stackBase = reinterpret_cast(wabase); @@ -124,6 +125,7 @@ static uintptr_t CountFreeStackSpace(const void* wabase) return stackUsage - stackBase; } +#endif /** * This methods prints all threads, their stack usage, and their total times diff --git a/firmware/controllers/actuators/lcd_controller.cpp b/firmware/controllers/actuators/lcd_controller.cpp index 453ad966d1..d01aa69617 100644 --- a/firmware/controllers/actuators/lcd_controller.cpp +++ b/firmware/controllers/actuators/lcd_controller.cpp @@ -161,6 +161,7 @@ static const char* idleModeStr[] = { "I:A", "I:M" }; // } //} +#if 0 static char * prepareInfoLine(engine_configuration_s *engineConfiguration, char *buffer) { char *ptr = buffer; @@ -176,6 +177,7 @@ static char * prepareInfoLine(engine_configuration_s *engineConfiguration, char ptr = appendStr(ptr, " "); return ptr; } +#endif //static char * prepareStatusLine(char *buffer) { // char *ptr = buffer;