From db018723f7cd404caffd962fee46bda30c1df23d Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 9 Sep 2019 19:39:13 -0400 Subject: [PATCH] refactoring: better field name --- firmware/controllers/trigger/rpm_calculator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/trigger/rpm_calculator.cpp b/firmware/controllers/trigger/rpm_calculator.cpp index db1c00f86d..2927627e39 100644 --- a/firmware/controllers/trigger/rpm_calculator.cpp +++ b/firmware/controllers/trigger/rpm_calculator.cpp @@ -280,12 +280,12 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType, // Replace 'normal' RPM with instant RPM for the initial spin-up period engine->triggerCentral.triggerState.movePreSynchTimestamps(PASS_ENGINE_PARAMETER_SIGNATURE); int prevIndex; - int iRpm = engine->triggerCentral.triggerState.calculateInstantRpm(&prevIndex, nowNt PASS_ENGINE_PARAMETER_SUFFIX); + int instantRpm = engine->triggerCentral.triggerState.calculateInstantRpm(&prevIndex, nowNt PASS_ENGINE_PARAMETER_SUFFIX); // validate instant RPM - we shouldn't skip the cranking state - iRpm = minI(iRpm, CONFIG(cranking.rpm) - 1); - rpmState->assignRpmValue(iRpm PASS_ENGINE_PARAMETER_SUFFIX); + instantRpm = minI(instantRpm, CONFIG(cranking.rpm) - 1); + rpmState->assignRpmValue(instantRpm PASS_ENGINE_PARAMETER_SUFFIX); #if 0 - scheduleMsg(logger, "** RPM: idx=%d sig=%d iRPM=%d", index, ckpSignalType, iRpm); + scheduleMsg(logger, "** RPM: idx=%d sig=%d iRPM=%d", index, ckpSignalType, instantRpm); #endif } }