refactoring

This commit is contained in:
rusefi 2017-12-17 00:07:43 -05:00
parent 9d372a29d1
commit 2fcbe2259a
1 changed files with 2 additions and 1 deletions

View File

@ -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);