diff --git a/firmware/console/binary/tooth_logger.cpp b/firmware/console/binary/tooth_logger.cpp index df531c9978..9226e23df1 100644 --- a/firmware/console/binary/tooth_logger.cpp +++ b/firmware/console/binary/tooth_logger.cpp @@ -156,11 +156,13 @@ void EnableToothLogger() { // Enable logging of edges as they come ToothLoggerEnabled = true; +#if EFI_TUNER_STUDIO // Tell TS that we're ready for it to read out the log // nb: this is a lie, as we may not have written anything // yet. However, we can let it continuously read out the buffer // as we update it, which looks pretty nice. tsOutputChannels.toothLogReady = true; +#endif // EFI_TUNER_STUDIO } void EnableToothLoggerIfNotEnabled() { @@ -171,7 +173,9 @@ void EnableToothLoggerIfNotEnabled() { void DisableToothLogger() { ToothLoggerEnabled = false; +#if EFI_TUNER_STUDIO tsOutputChannels.toothLogReady = false; +#endif // EFI_TUNER_STUDIO } ToothLoggerBuffer GetToothLoggerBuffer() { diff --git a/unit_tests/Makefile b/unit_tests/Makefile index 3c68262b20..c1f3596319 100644 --- a/unit_tests/Makefile +++ b/unit_tests/Makefile @@ -144,6 +144,7 @@ CPPSRC = $(UTILSRC_CPP) \ $(INIT_SRC_CPP) \ $(PROJECT_DIR)/../unit_tests/logicdata.cpp \ $(PROJECT_DIR)/../unit_tests/main.cpp \ + $(PROJECT_DIR)/console/binary/tooth_logger.cpp \ $(PROJECT_DIR)/console/binary_log/log_field.cpp \ diff --git a/unit_tests/efifeatures.h b/unit_tests/efifeatures.h index 5af53c1aec..29679ab606 100644 --- a/unit_tests/efifeatures.h +++ b/unit_tests/efifeatures.h @@ -17,6 +17,8 @@ #define ENABLE_PERF_TRACE FALSE +#define EFI_TOOTH_LOGGER TRUE + #define EFI_LAUNCH_CONTROL TRUE #define EFI_BOOST_CONTROL TRUE