From c3fcc684489ac616e8d5ef5a1be7ffa48b11987b Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 21 Nov 2014 11:04:24 -0600 Subject: [PATCH] auto-sync --- firmware/console_util/datalogging.c | 3 ++- firmware/rusefi.cpp | 2 +- firmware/svnversion.h | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/firmware/console_util/datalogging.c b/firmware/console_util/datalogging.c index 1b2a6f8473..b1966ac789 100644 --- a/firmware/console_util/datalogging.c +++ b/firmware/console_util/datalogging.c @@ -402,7 +402,8 @@ void scheduleLogging(Logging *logging) { resetLogging(logging); return; } - strcpy(accumulationBuffer + accumulatedSize, logging->buffer); + // memcpy is faster then strcpy because it is not looking for line terminator + memcpy(accumulationBuffer + accumulatedSize, logging->buffer, newLength + 1); accumulatedSize += newLength; if (!alreadyLocked) { unlockOutputBuffer(); diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index b1db5be354..457890e87a 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -262,5 +262,5 @@ void firmwareError(const char *fmt, ...) { } int getRusEfiVersion(void) { - return 20141119; + return 20141121; } diff --git a/firmware/svnversion.h b/firmware/svnversion.h index 2a4197a50c..25ec2c1137 100644 --- a/firmware/svnversion.h +++ b/firmware/svnversion.h @@ -1,5 +1,5 @@ // This file was generated by Version2Header -// Wed Nov 19 10:50:16 EST 2014 +// Fri Nov 21 11:57:01 EST 2014 #ifndef VCS_VERSION -#define VCS_VERSION "5449" +#define VCS_VERSION "5450" #endif