From 1fcd70fdb9970bd07540fbcace1fe3cce4f1d222 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 19 Oct 2018 16:21:50 -0600 Subject: [PATCH] arch/arm/src/stm32/stm32_pwm.c: Fix a compilation error introduced in recent PR. Found in build testing. --- arch/arm/src/stm32/stm32_pwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_pwm.c b/arch/arm/src/stm32/stm32_pwm.c index ec2fa7add1..ec521ee881 100644 --- a/arch/arm/src/stm32/stm32_pwm.c +++ b/arch/arm/src/stm32/stm32_pwm.c @@ -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: