From 2fcbe2259ad8979df32cc3538fdbce239de7e2f8 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 17 Dec 2017 00:07:43 -0500 Subject: [PATCH] refactoring --- firmware/controllers/core/fsio_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/core/fsio_impl.cpp b/firmware/controllers/core/fsio_impl.cpp index 63873e6b87..e142ce9724 100644 --- a/firmware/controllers/core/fsio_impl.cpp +++ b/firmware/controllers/core/fsio_impl.cpp @@ -290,7 +290,8 @@ static void handleFsio(int index DECLARE_ENGINE_PARAMETER_SUFFIX) { bool isPwmMode = boardConfiguration->fsioFrequency[index] != NO_PWM; - engine->fsioLastValue[index] = getFsioOutputValue(index PASS_ENGINE_PARAMETER_SUFFIX); + float fvalue = getFsioOutputValue(index PASS_ENGINE_PARAMETER_SUFFIX); + engine->fsioLastValue[index] = fvalue; if (isPwmMode) { fsioPwm[index].setSimplePwmDutyCycle(fvalue);