fixed #367
This commit is contained in:
parent
da7df362c6
commit
885b24b53c
|
@ -600,14 +600,16 @@ void handleOutputChannelsCommand(ts_channel_s *tsChannel, ts_response_format_e m
|
||||||
#define TEST_RESPONSE_TAG " ts_p_alive\r\n"
|
#define TEST_RESPONSE_TAG " ts_p_alive\r\n"
|
||||||
|
|
||||||
void handleTestCommand(ts_channel_s *tsChannel) {
|
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
|
* this is NOT a standard TunerStudio command, this is my own
|
||||||
* extension of the protocol to simplify troubleshooting
|
* extension of the protocol to simplify troubleshooting
|
||||||
*/
|
*/
|
||||||
tunerStudioDebug("got T (Test)");
|
tunerStudioDebug("got T (Test)");
|
||||||
tunerStudioWriteData(tsChannel, (const uint8_t *) VCS_VERSION, sizeof(VCS_VERSION));
|
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
|
* Please note that this response is a magic constant used by dev console for protocol detection
|
||||||
* @see EngineState#TS_PROTOCOL_TAG
|
* @see EngineState#TS_PROTOCOL_TAG
|
||||||
|
|
|
@ -249,5 +249,5 @@ int getRusEfiVersion(void) {
|
||||||
return 123; // this is here to make the compiler happy about the unused array
|
return 123; // this is here to make the compiler happy about the unused array
|
||||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||||
return 3211; // this is here to make the compiler happy about the unused array
|
return 3211; // this is here to make the compiler happy about the unused array
|
||||||
return 20170304;
|
return 20170305;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue