only: documentation and templating magic constant

This commit is contained in:
rusefillc 2024-07-03 13:29:56 -04:00
parent e48e353299
commit c44ec74f70
3 changed files with 4 additions and 3 deletions

View File

@ -671,6 +671,7 @@ void tunerStudioError(TsChannelBase* tsChannel, const char *msg) {
extern CommandHandler console_line_callback;
// see also handleQueryCommand
static void handleGetVersion(TsChannelBase* tsChannel) {
char versionBuffer[32];
chsnprintf(versionBuffer, sizeof(versionBuffer), "%s v%d@%u", "rusEFI", getRusEfiVersion(), SIGNATURE_HASH);

View File

@ -2347,7 +2347,7 @@ end_struct
! These commands are used by TunerStudio and the rusEFI console
! 0x4F ochGetCommand
#define TS_OUTPUT_COMMAND 'O'
! 0x53 queryCommand
! 0x53 queryCommand - this one is about detailed signature
#define TS_HELLO_COMMAND 'S'
! todo: replace all usages of TS_HELLO_COMMAND with TS_QUERY_COMMAND
! todo#2: actually is above still the case?
@ -2386,7 +2386,7 @@ end_struct
! 0x46
#define TS_COMMAND_F 'F'
#define TS_GET_PROTOCOL_VERSION_COMMAND_F 'F'
! versionInfo 0x56 86
! versionInfo 0x56 86 this one is only used for TS and console title bars, right?
#define TS_GET_FIRMWARE_VERSION 'V'
! returns getFirmwareError(), works together with ind_hasFatalError
#define TS_GET_CONFIG_ERROR 'e'

View File

@ -42,7 +42,7 @@ enable2ndByteCanID = false
[TunerStudio]
queryCommand = "@#TS_HELLO_COMMAND#@"
versionInfo = "V" ; firmware version for title bar.
versionInfo = "@#TS_GET_FIRMWARE_VERSION#@" ; firmware version for title bar.
signature= @@TS_SIGNATURE@@ ; signature is expected to be 7 or more characters.
; TS will try to use legacy temp units in some cases, showing "deg F" on a CLT gauge that's actually deg C