From 4fe0386d61069cea312d51f1338e38f3b3ffa476 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sun, 8 Mar 2015 21:05:36 -0500 Subject: [PATCH] auto-sync --- firmware/console/status_loop.cpp | 2 +- firmware/console/tunerstudio/tunerstudio_io.h | 4 ++++ firmware/util/loggingcentral.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index bd44050db8..ad5c3df137 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -366,7 +366,7 @@ void updateDevConsoleState(Engine *engine) { printWave(&logger); #endif - printLine(&logger); + scheduleLogging(&logger); } #if EFI_PROD_CODE diff --git a/firmware/console/tunerstudio/tunerstudio_io.h b/firmware/console/tunerstudio/tunerstudio_io.h index fa7e1fa1d0..cfbb258eb5 100644 --- a/firmware/console/tunerstudio/tunerstudio_io.h +++ b/firmware/console/tunerstudio/tunerstudio_io.h @@ -14,6 +14,10 @@ #include "pin_repository.h" #endif +// that's hex for "~\n", see +#define BINARY_SWITCH_TAG 0x7e0d +#define BINARY_COMMAND "~" + #define PROTOCOL "001" #define TS_SIGNATURE "MShift v0.01" diff --git a/firmware/util/loggingcentral.h b/firmware/util/loggingcentral.h index bac7d1918d..d7762e23f6 100644 --- a/firmware/util/loggingcentral.h +++ b/firmware/util/loggingcentral.h @@ -8,5 +8,6 @@ #define UTIL_LOGGINGCENTRAL_H_ void initLoggingCentral(void); +char * swapOutputBuffers(int *actualOutputBufferSize); #endif /* UTIL_LOGGINGCENTRAL_H_ */