From 39b9211588eda7768471440f3ca5234fdcf05a7f Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 21 Jul 2021 23:06:35 -0400 Subject: [PATCH] VVT C++ magic - helping Kinetis --- firmware/controllers/algo/engine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 630284080c..f1c764c8ac 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -110,8 +110,8 @@ public: efitick_t mostRecentTimeBetweenIgnitionEvents; PrimaryTriggerConfiguration primaryTriggerConfiguration; -#if CAMS_PER_BANK == 0 - VvtTriggerConfiguration vvtTriggerConfiguration[CAMS_PER_BANK]; +#if CAMS_PER_BANK == 1 + VvtTriggerConfiguration vvtTriggerConfiguration[CAMS_PER_BANK] = {{"VVT1 ", 0}}; #else VvtTriggerConfiguration vvtTriggerConfiguration[CAMS_PER_BANK] = {{"VVT1 ", 0}, {"VVT2 ", 1}}; #endif