From 41cd36b79e20bce03d49d6a810dc925429cf3f90 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 21 Jul 2021 22:38:00 -0400 Subject: [PATCH] VVT C++ magic - helping Kinetis --- firmware/controllers/algo/engine.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 9b163ab35d..630284080c 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -110,7 +110,12 @@ public: efitick_t mostRecentTimeBetweenIgnitionEvents; PrimaryTriggerConfiguration primaryTriggerConfiguration; +#if CAMS_PER_BANK == 0 + VvtTriggerConfiguration vvtTriggerConfiguration[CAMS_PER_BANK]; +#else VvtTriggerConfiguration vvtTriggerConfiguration[CAMS_PER_BANK] = {{"VVT1 ", 0}, {"VVT2 ", 1}}; +#endif + efitick_t startStopStateLastPushTime = 0; #if EFI_SHAFT_POSITION_INPUT