refactoring

This commit is contained in:
rusefi 2018-01-21 15:31:59 -05:00
parent 9a5b9e2edb
commit 859c458b96
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ void setTriggerEmulatorRPM(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX) {
* togglePwmState() would see that the periodMs has changed and act accordingly * togglePwmState() would see that the periodMs has changed and act accordingly
*/ */
if (rpm == 0) { if (rpm == 0) {
triggerSignal.periodNt = NAN; triggerSignal.setFrequency(NAN);
} else { } else {
float rpmM = getRpmMultiplier(engineConfiguration->operationMode); float rpmM = getRpmMultiplier(engineConfiguration->operationMode);
float rPerSecond = rpm * rpmM / 60.0; // per minute converted to per second float rPerSecond = rpm * rpmM / 60.0; // per minute converted to per second