From 523f9dad02b8cdb99611a22e0958e07b75c2e81a Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 25 Nov 2023 22:32:08 -0500 Subject: [PATCH] only:EPIC: Improve toolset for default tune canned tune generation #4871 --- firmware/config/engines/honda_k_dbc.cpp | 4 ++++ simulator/Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/config/engines/honda_k_dbc.cpp b/firmware/config/engines/honda_k_dbc.cpp index 9c4931e268..552bd8771f 100644 --- a/firmware/config/engines/honda_k_dbc.cpp +++ b/firmware/config/engines/honda_k_dbc.cpp @@ -60,6 +60,10 @@ void setHondaK() { gppwm_channel *vtsControl = &engineConfiguration->gppwm[0]; vtsControl->pwmFrequency = 0; +#if EFI_SIMULATOR + // simulator canned config XML toolset cares to see perfect empty memory region + memset(engineConfiguration->gpPwmNote[0], 0, sizeof(gppwm_note_t)); +#endif strcpy(engineConfiguration->gpPwmNote[0], "VTS"); /** diff --git a/simulator/Makefile b/simulator/Makefile index aee2dba722..56281da518 100644 --- a/simulator/Makefile +++ b/simulator/Makefile @@ -44,7 +44,7 @@ endif # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -Wall -Wno-error=implicit-fallthrough -Wno-error=write-strings -Wno-error=strict-aliasing + USE_OPT = -Wall -Wno-error=implicit-fallthrough -Wno-error=write-strings -Wno-error=strict-aliasing -Werror=nonnull ifeq ($(OS),Windows_NT) USE_OPT += -DEFI_SIM_IS_WINDOWS=1