diff --git a/firmware/controllers/trigger/instant_rpm_calculator.cpp b/firmware/controllers/trigger/instant_rpm_calculator.cpp index 6721faf1be..1d21402a41 100644 --- a/firmware/controllers/trigger/instant_rpm_calculator.cpp +++ b/firmware/controllers/trigger/instant_rpm_calculator.cpp @@ -11,6 +11,10 @@ */ #include "engine_state.h" +#if EFI_UNIT_TEST +extern bool printTriggerDebug; +#endif + #if EFI_SHAFT_POSITION_INPUT InstantRpmCalculator::InstantRpmCalculator() : @@ -124,6 +128,11 @@ void InstantRpmCalculator::updateInstantRpm( m_instantRpm = calculateInstantRpm(triggerShape, triggerFormDetails, index, nowNt); +#if EFI_UNIT_TEST + if (printTriggerDebug) { + printf("instantRpm = %f\n", m_instantRpm); + } +#endif #if EFI_SENSOR_CHART if (getEngineState()->sensorChartMode == SC_RPM_ACCEL || getEngineState()->sensorChartMode == SC_DETAILED_RPM) {