This commit is contained in:
rusefi 2017-03-05 14:21:04 -05:00
parent da7df362c6
commit 885b24b53c
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;
}