This commit is contained in:
rusefi 2017-10-16 14:01:39 -04:00
parent 6b4fdec715
commit 898fb111c8
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ TriggerStimulatorHelper::TriggerStimulatorHelper() {
// this is not the only place where we have 'isUpEvent'. todo: reuse
static bool isRisingEdge[6] = { false, true, false, true, false, true };
// todo: should this method be invoked somewhere deeper? at the moment we have too many usages too high
bool isUsefulSignal(trigger_event_e signal, engine_configuration_s *engineConfiguration) {
return !engineConfiguration->useOnlyRisingEdgeForTrigger || isRisingEdge[(int) signal];
}