refactoring - reducing trigger code complexity

This commit is contained in:
rusefi 2017-10-16 14:08:45 -04:00
parent 898fb111c8
commit 02eed1c82c
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include "settings.h"
#include "engine_math.h"
#include "LocalVersionHolder.h"
#include "trigger_simulator.h"
#include "rpm_calculator.h"
#if EFI_PROD_CODE || defined(__DOXYGEN__)
@ -178,6 +179,9 @@ void hwHandleVvtCamSignal(trigger_value_e front) {
}
void hwHandleShaftSignal(trigger_event_e signal) {
if (!isUsefulSignal(signal, engineConfiguration)) {
return;
}
triggerHanlderEntryTime = GET_TIMESTAMP();
isInsideTriggerHandler = true;
if (triggerReentraint > maxTriggerReentraint)