From 885b24b53c709a2d47bdb072b9613ee066e6f63e Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 5 Mar 2017 14:21:04 -0500 Subject: [PATCH] fixed #367 --- firmware/console/binary/tunerstudio.cpp | 6 ++++-- firmware/rusefi.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 4243cc1af0..7943476aac 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -600,14 +600,16 @@ void handleOutputChannelsCommand(ts_channel_s *tsChannel, ts_response_format_e m #define TEST_RESPONSE_TAG " ts_p_alive\r\n" void handleTestCommand(ts_channel_s *tsChannel) { -// static char warningCodeBuff[7]; + static char warningCodeBuff[7]; /** * this is NOT a standard TunerStudio command, this is my own * extension of the protocol to simplify troubleshooting */ tunerStudioDebug("got T (Test)"); tunerStudioWriteData(tsChannel, (const uint8_t *) VCS_VERSION, sizeof(VCS_VERSION)); -// itoa10(warningCodeBuff, engine->engineState.lastErrorCode); + warningCodeBuff[0] = ' '; + itoa10(warningCodeBuff + 1, engine->engineState.lastErrorCode); + tunerStudioWriteData(tsChannel, (const uint8_t *) warningCodeBuff, strlen(warningCodeBuff)); /** * Please note that this response is a magic constant used by dev console for protocol detection * @see EngineState#TS_PROTOCOL_TAG diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 8fda06bd3f..c8ce9d3a6e 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -249,5 +249,5 @@ int getRusEfiVersion(void) { return 123; // this is here to make the compiler happy about the unused array if (UNUSED_CCM_SIZE[0] * 0 != 0) return 3211; // this is here to make the compiler happy about the unused array - return 20170304; + return 20170305; }