From b6e578b4c28b313d6acc2e23b86fc17b36e9566f Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 3 Jul 2024 13:34:55 -0400 Subject: [PATCH] still very confused and FRONTEND_TITLE_BAR_NAME only:uaefi --- firmware/config/boards/hellen/uaefi/prepend.txt | 2 +- firmware/console/binary/tunerstudio.cpp | 2 +- firmware/console/eficonsole.cpp | 2 +- firmware/integration/rusefi_config.txt | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/config/boards/hellen/uaefi/prepend.txt b/firmware/config/boards/hellen/uaefi/prepend.txt index 0de80cf89f..1fb91479ac 100644 --- a/firmware/config/boards/hellen/uaefi/prepend.txt +++ b/firmware/config/boards/hellen/uaefi/prepend.txt @@ -22,7 +22,7 @@ #define ts_show_tcu true #define ts_show_gdi true - +#define FRONTEND_TITLE_BAR_NAME "uaEFI" #define show_uaefi_presets true diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 8e7e1ccfcf..e1a3902a56 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -674,7 +674,7 @@ 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); + chsnprintf(versionBuffer, sizeof(versionBuffer), "%s v%d@%u", FRONTEND_TITLE_BAR_NAME, getRusEfiVersion(), SIGNATURE_HASH); tsChannel->sendResponse(TS_CRC, (const uint8_t *) versionBuffer, strlen(versionBuffer) + 1); } diff --git a/firmware/console/eficonsole.cpp b/firmware/console/eficonsole.cpp index 8dc78c350b..c177bc3528 100644 --- a/firmware/console/eficonsole.cpp +++ b/firmware/console/eficonsole.cpp @@ -64,7 +64,7 @@ BOARD_WEAK void boardSayHello() { static void sayHello() { efiPrintf(PROTOCOL_HELLO_PREFIX " rusEFI LLC (c) 2012-2024. All rights reserved."); - efiPrintf(PROTOCOL_HELLO_PREFIX " rusEFI v%d@%d now=%d", getRusEfiVersion(), /*do we have a working way to print 64 bit values?!*/(int)SIGNATURE_HASH, (int)getTimeNowMs()); + efiPrintf(PROTOCOL_HELLO_PREFIX " rusEFI v%d@%u now=%d", getRusEfiVersion(), /*do we have a working way to print 64 bit values?!*/(int)SIGNATURE_HASH, (int)getTimeNowMs()); efiPrintf(PROTOCOL_HELLO_PREFIX " Chibios Kernel: %s", CH_KERNEL_VERSION); efiPrintf(PROTOCOL_HELLO_PREFIX " Compiled: " __DATE__ " - " __TIME__ ""); efiPrintf(PROTOCOL_HELLO_PREFIX " COMPILER=%s", __VERSION__); diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 194feb3641..6b4291cef0 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -2318,6 +2318,7 @@ end_struct #define PROTOCOL_VERSION_TAG "rusEfiVersion" #define PROTOCOL_TEST_RESPONSE_TAG "ts_p_alive" #define PROTOCOL_SIGNATURE_PREFIX "rusEFI " +#define FRONTEND_TITLE_BAR_NAME "rusEFI" ! Engine Sniffer Protocol #define PROTOCOL_ES_DOWN "d"