auto-sync

This commit is contained in:
rusEfi 2015-04-13 10:05:22 -05:00
parent 6c5fac87f9
commit 6bf0b0e9be
1 changed files with 3 additions and 2 deletions

View File

@ -23,13 +23,14 @@ TriggerEmulatorHelper::TriggerEmulatorHelper() {
thirdWheelState = false;
}
static bool_t isUp[6] = { false, true, false, true, false, true };
// this is not the only place where we have 'isUpEvent'. todo: reuse
static bool_t isUpEvent[6] = { false, true, false, true, false, true };
EXTERN_ENGINE
;
static void fireShaftSignal(trigger_event_e signal) {
if (!engineConfiguration->useOnlyFrontForTrigger || isUp[(int) signal])
if (!engineConfiguration->useOnlyFrontForTrigger || isUpEvent[(int) signal])
hwHandleShaftSignal(signal);
}