better location, better command name
This commit is contained in:
parent
a4329169e9
commit
6fdbefe844
|
@ -476,8 +476,8 @@ static bool isKnownCommand(char command) {
|
||||||
|| command == TS_IO_TEST_COMMAND
|
|| command == TS_IO_TEST_COMMAND
|
||||||
|| command == TS_GET_STRUCT
|
|| command == TS_GET_STRUCT
|
||||||
|| command == TS_GET_FILE_RANGE
|
|| command == TS_GET_FILE_RANGE
|
||||||
|| command == TS_SET_LOGGER_MODE
|
|| command == TS_SET_LOGGER_SWITCH
|
||||||
|| command == TS_GET_LOGGER_BUFFER
|
|| command == TS_GET_LOGGER_GET_BUFFER
|
||||||
|| command == TS_GET_TEXT
|
|| command == TS_GET_TEXT
|
||||||
|| command == TS_CRC_CHECK_COMMAND
|
|| command == TS_CRC_CHECK_COMMAND
|
||||||
|| command == TS_GET_FIRMWARE_VERSION
|
|| command == TS_GET_FIRMWARE_VERSION
|
||||||
|
@ -826,7 +826,7 @@ int tunerStudioHandleCrcCommand(ts_channel_s *tsChannel, char *data, int incomin
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#if EFI_TOOTH_LOGGER
|
#if EFI_TOOTH_LOGGER
|
||||||
case TS_SET_LOGGER_MODE:
|
case TS_SET_LOGGER_SWITCH:
|
||||||
switch(data[0]) {
|
switch(data[0]) {
|
||||||
case 0x01:
|
case 0x01:
|
||||||
EnableToothLogger();
|
EnableToothLogger();
|
||||||
|
@ -842,7 +842,7 @@ int tunerStudioHandleCrcCommand(ts_channel_s *tsChannel, char *data, int incomin
|
||||||
sendOkResponse(tsChannel, TS_CRC);
|
sendOkResponse(tsChannel, TS_CRC);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case TS_GET_LOGGER_BUFFER:
|
case TS_GET_LOGGER_GET_BUFFER:
|
||||||
{
|
{
|
||||||
auto toothBuffer = GetToothLoggerBuffer();
|
auto toothBuffer = GetToothLoggerBuffer();
|
||||||
sr5SendResponse(tsChannel, TS_CRC, toothBuffer.Buffer, toothBuffer.Length);
|
sr5SendResponse(tsChannel, TS_CRC, toothBuffer.Buffer, toothBuffer.Length);
|
||||||
|
|
|
@ -71,8 +71,8 @@ typedef struct {
|
||||||
#define TS_GET_CONFIG_ERROR 'e' // returns getFirmwareError(), works together with ind_hasFatalError
|
#define TS_GET_CONFIG_ERROR 'e' // returns getFirmwareError(), works together with ind_hasFatalError
|
||||||
|
|
||||||
// High speed logger commands
|
// High speed logger commands
|
||||||
#define TS_SET_LOGGER_MODE 'l'
|
#define TS_SET_LOGGER_SWITCH 'l'
|
||||||
#define TS_GET_LOGGER_BUFFER 'L'
|
#define TS_GET_LOGGER_GET_BUFFER 'L'
|
||||||
|
|
||||||
// Performance tracing
|
// Performance tracing
|
||||||
#define TS_PERF_TRACE_BEGIN 'r'
|
#define TS_PERF_TRACE_BEGIN 'r'
|
||||||
|
|
|
@ -4,7 +4,7 @@ CONSOLESRC =
|
||||||
CONSOLE_SRC_CPP = $(PROJECT_DIR)/console/status_loop.cpp \
|
CONSOLE_SRC_CPP = $(PROJECT_DIR)/console/status_loop.cpp \
|
||||||
$(PROJECT_DIR)/console/console_io.cpp \
|
$(PROJECT_DIR)/console/console_io.cpp \
|
||||||
$(PROJECT_DIR)/console/eficonsole.cpp \
|
$(PROJECT_DIR)/console/eficonsole.cpp \
|
||||||
$(PROJECT_DIR)/console/tooth_logger.cpp \
|
$(PROJECT_DIR)/console/binary_log/tooth_logger.cpp \
|
||||||
$(PROJECT_DIR)/console/binary_log/log_field.cpp \
|
$(PROJECT_DIR)/console/binary_log/log_field.cpp \
|
||||||
$(PROJECT_DIR)/console/binary_log/binary_logging.cpp \
|
$(PROJECT_DIR)/console/binary_log/binary_logging.cpp \
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue