From 8c3866408481868dd78267632b6645baf82c500b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 4 Jan 2021 23:34:19 -0500 Subject: [PATCH] RAM efficiency of VR crank trigger shapes #2182 Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912 --- .../controllers/trigger/decoders/trigger_structure.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index 02bb6ef002..35f7feefe3 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -186,6 +186,14 @@ extern bool printTriggerDebug; void TriggerWaveform::calculateExpectedEventCounts(bool useOnlyRisingEdgeForTrigger) { UNUSED(useOnlyRisingEdgeForTrigger); + if (!useOnlyRisingEdgeForTrigger) { + for (int i = 0;i