counter for T command

This commit is contained in:
rusefi 2017-05-09 15:32:14 -04:00
parent 3accb42d4d
commit d26e9e0c96
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ void handleTestCommand(ts_channel_s *tsChannel) {
*/
tunerStudioDebug("got T (Test)");
tunerStudioWriteData(tsChannel, (const uint8_t *) VCS_VERSION, sizeof(VCS_VERSION));
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), "%d %d", engine->engineState.lastErrorCode, tsState.testCommandCounter);
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), " %d %d", engine->engineState.lastErrorCode, tsState.testCommandCounter);
tunerStudioWriteData(tsChannel, (const uint8_t *) testOutputBuffer, strlen(testOutputBuffer));
/**
* Please note that this response is a magic constant used by dev console for protocol detection