arch/arm/src/stm32/stm32_pwm.c: Fix a compilation error introduced in recent PR. Found in build testing.

This commit is contained in:
Gregory Nutt 2018-10-19 16:21:50 -06:00
parent 3abe871a80
commit 1fcd70fdb9
1 changed files with 3 additions and 1 deletions

View File

@ -3468,7 +3468,7 @@ static int pwm_duty_channels_update(FAR struct pwm_lowerhalf_s *dev,
#endif
{
#ifdef CONFIG_PWM_MULTICHAN
duty = info->channels[i].duty;
duty = info->channels[i].duty;
channel = info->channels[i].channel;
/* A value of zero means to skip this channel */
@ -3505,7 +3505,9 @@ static int pwm_duty_channels_update(FAR struct pwm_lowerhalf_s *dev,
{
goto errout;
}
#ifdef CONFIG_PWM_MULTICHAN
}
#endif
}
errout: