From 4dd9edfcffb1d4523f3aa3e05c2ec417bee84a5f Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 28 Jan 2020 00:27:30 -0500 Subject: [PATCH] reusing constant --- firmware/controllers/trigger/trigger_simulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/trigger_simulator.cpp b/firmware/controllers/trigger/trigger_simulator.cpp index 66d83cdeee..a21b89a726 100644 --- a/firmware/controllers/trigger/trigger_simulator.cpp +++ b/firmware/controllers/trigger/trigger_simulator.cpp @@ -15,7 +15,7 @@ EXTERN_ENGINE; // this is not the only place where we have 'isUpEvent'. todo: reuse -static const bool isRisingEdge[6] = { false, true, false, true, false, true }; +static const bool isRisingEdge[HW_EVENT_TYPES] = { 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 DECLARE_CONFIG_PARAMETER_SUFFIX) {