From 081a5ee6dc8e37fe0c3c5f4f9399893f3a8e6a0a Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 19 May 2017 13:04:16 -0400 Subject: [PATCH] fixing build --- firmware/controllers/trigger/trigger_structure.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/trigger_structure.cpp b/firmware/controllers/trigger/trigger_structure.cpp index 81a85c5e7f..4c6d2d07d0 100644 --- a/firmware/controllers/trigger/trigger_structure.cpp +++ b/firmware/controllers/trigger/trigger_structure.cpp @@ -24,7 +24,9 @@ #include "trigger_decoder.h" #include "engine_math.h" #include "trigger_universal.h" +#if EFI_SENSOR_CHART || defined(__DOXYGEN__) #include "sensor_chart.h" +#endif /* EFI_SENSOR_CHART */ EXTERN_ENGINE; @@ -233,7 +235,7 @@ void TriggerStateWithRunningStatistics::runtimeStatistics(trigger_event_e const } else { scAddData(currentAngle, r / instantRpmValue[prevIndex]); } -#endif +#endif /* EFI_SENSOR_CHART */ instantRpmValue[currentCycle.current_index] = r; timeOfLastEvent[currentCycle.current_index] = nowNt; }