mirror of https://github.com/rusefi/wideband.git
TS: use BOARD_NAME in Test and Version commands reply (#211)
* TS: use BOARD_NAME in Test and Version commands reply * making source code two bytes smaller * making source code two bytes smaller * making source code two bytes smaller --------- Co-authored-by: Andrey Gusakov <dron0gus@gmail.com> Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
parent
7411f42d21
commit
6364c7cb2c
|
@ -215,8 +215,6 @@ static bool isKnownCommand(char command) {
|
||||||
* rusEfi own test command
|
* rusEfi own test command
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define VCS_VERSION "unknown"
|
|
||||||
|
|
||||||
static void handleTestCommand(TsChannelBase* tsChannel) {
|
static void handleTestCommand(TsChannelBase* tsChannel) {
|
||||||
tsState.testCommandCounter++;
|
tsState.testCommandCounter++;
|
||||||
char testOutputBuffer[64];
|
char testOutputBuffer[64];
|
||||||
|
@ -225,7 +223,7 @@ static void handleTestCommand(TsChannelBase* tsChannel) {
|
||||||
* extension of the protocol to simplify troubleshooting
|
* extension of the protocol to simplify troubleshooting
|
||||||
*/
|
*/
|
||||||
tunerStudioDebug(tsChannel, "got T (Test)");
|
tunerStudioDebug(tsChannel, "got T (Test)");
|
||||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), VCS_VERSION "\r\n");
|
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), BOARD_NAME "\r\n");
|
||||||
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
tsChannel->write((const uint8_t*)testOutputBuffer, strlen(testOutputBuffer));
|
||||||
|
|
||||||
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), __DATE__ "\r\n");
|
chsnprintf(testOutputBuffer, sizeof(testOutputBuffer), __DATE__ "\r\n");
|
||||||
|
@ -464,8 +462,7 @@ void tunerStudioError(TsChannelBase* tsChannel, const char *msg) {
|
||||||
|
|
||||||
static void handleGetVersion(TsChannelBase* tsChannel) {
|
static void handleGetVersion(TsChannelBase* tsChannel) {
|
||||||
char versionBuffer[32];
|
char versionBuffer[32];
|
||||||
//chsnprintf(versionBuffer, sizeof(versionBuffer), "rusEFI v%d@%s", getRusEfiVersion(), VCS_VERSION);
|
chsnprintf(versionBuffer, sizeof(versionBuffer), BOARD_NAME);
|
||||||
chsnprintf(versionBuffer, sizeof(versionBuffer), "rusEFI Wideband Rev2");
|
|
||||||
tsChannel->sendResponse(TS_CRC, (const uint8_t *) versionBuffer, strlen(versionBuffer) + 1);
|
tsChannel->sendResponse(TS_CRC, (const uint8_t *) versionBuffer, strlen(versionBuffer) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue