From 69b988c9738e263cc1df129a59c52659220f44d4 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 4 Mar 2017 20:50:51 -0500 Subject: [PATCH] removing artificial limitation --- firmware/controllers/trigger/trigger_structure.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/firmware/controllers/trigger/trigger_structure.cpp b/firmware/controllers/trigger/trigger_structure.cpp index bd3df56ef2..8bbec23bcb 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -81,15 +81,6 @@ void TriggerShape::calculateTriggerSynchPoint(TriggerState *state DECLARE_ENGINE frontOnlyIndexes[eventIndex] = frontOnlyIndex; } } - - int totalExpected = 0; - for (int i = 0;i < PWM_PHASE_MAX_WAVE_PER_PWM;i++) { - totalExpected += expectedEventCount[i]; - } - if (totalExpected < 2) { - // todo: there is a good chance this is not an issue at all and we should allow a 2/1 skipped wheel - firmwareError(CUSTOM_ERR_TOO_FEW_EVENTS, "Too few trigger events"); - } } void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTriggerInput) {