diff --git a/firmware/controllers/trigger/trigger_emulator_algo.cpp b/firmware/controllers/trigger/trigger_emulator_algo.cpp index 09f280d178..cb7449b1ce 100644 --- a/firmware/controllers/trigger/trigger_emulator_algo.cpp +++ b/firmware/controllers/trigger/trigger_emulator_algo.cpp @@ -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); }