From 62520aee781483fb0a9c4792f0e972c60956d172 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:19:01 -0500 Subject: [PATCH] TS: dead code (#197) (cherry picked from commit 3a4bd2c3f8796297dca20441ba93a810d52ea3e6) Co-authored-by: Andrey Gusakov --- firmware/console/binary/tunerstudio.cpp | 29 ++----------------------- firmware/console/binary/tunerstudio.h | 2 -- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index ebab8b9..e7a37c9 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -547,32 +547,7 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, char *data, size_t i } void startTunerStudioConnectivity(void) { - // Assert tune & output channel struct sizes -// static_assert(sizeof(persistent_config_s) == TOTAL_CONFIG_SIZE, "TS datapage size mismatch"); -// useful trick if you need to know how far off is the static_assert -// char (*__kaboom)[sizeof(persistent_config_s)] = 1; -// another useful trick -// static_assert(offsetof (engine_configuration_s,HD44780_e) == 700); - + /* just reset debug counters */ + /* actually already zeroed */ memset(&tsState, 0, sizeof(tsState)); - -#if EFI_BLUETOOTH_SETUP - // module initialization start (it waits for disconnect and then communicates to the module) - // Usage: "bluetooth_hc06 " - // Example: "bluetooth_hc06 38400 rusefi 1234" - // bluetooth_jdy 115200 alphax 1234 - addConsoleActionSSS("bluetooth_hc05", [](const char *baudRate, const char *name, const char *pinCode) { - bluetoothStart(BLUETOOTH_HC_05, baudRate, name, pinCode); - }); - addConsoleActionSSS("bluetooth_hc06", [](const char *baudRate, const char *name, const char *pinCode) { - bluetoothStart(BLUETOOTH_HC_06, baudRate, name, pinCode); - }); - addConsoleActionSSS("bluetooth_bk", [](const char *baudRate, const char *name, const char *pinCode) { - bluetoothStart(BLUETOOTH_BK3231, baudRate, name, pinCode); - }); - addConsoleActionSSS("bluetooth_jdy", [](const char *baudRate, const char *name, const char *pinCode) { - bluetoothStart(BLUETOOTH_JDY_3x, baudRate, name, pinCode); - }); - addConsoleAction("bluetooth_cancel", bluetoothCancel); -#endif /* EFI_BLUETOOTH_SETUP */ } diff --git a/firmware/console/binary/tunerstudio.h b/firmware/console/binary/tunerstudio.h index d247f02..81de96b 100644 --- a/firmware/console/binary/tunerstudio.h +++ b/firmware/console/binary/tunerstudio.h @@ -7,8 +7,6 @@ #pragma once #include "tunerstudio_io.h" -//#include "FragmentEntry.h" - #include "thread_controller.h" typedef struct {