From 723a59162bacac1cb8afafd47cfc9db82f610d5f Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 22 Nov 2014 09:03:14 -0600 Subject: [PATCH] auto-sync --- firmware/rusefi.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 457890e87a..d1185c1a44 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -248,7 +248,7 @@ void firmwareError(const char *fmt, ...) { * in case of simple error message let's reduce stack usage * because chvprintf might be causing an error */ - strcpy((char*)errorMessageBuffer, fmt); + strcpy((char*) errorMessageBuffer, fmt); } else { firmwareErrorMessageStream.eos = 0; // reset @@ -261,6 +261,14 @@ void firmwareError(const char *fmt, ...) { } } +static char UNUSED_RAM_SIZE[20000]; + +static char UNUSED_CCM_SIZE[5000] CCM_OPTIONAL; + int getRusEfiVersion(void) { - return 20141121; + if (UNUSED_RAM_SIZE == 0) + return 1; // this is here to make the compiler happy about the unused array + if (UNUSED_CCM_SIZE == 0) + return 1; // this is here to make the compiler happy about the unused array + return 20141122; }