mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:28:40 +08:00
nrf52: fix build for PWM without multichan enabled
This commit is contained in:
@@ -586,7 +586,7 @@ static int nrf52_pwm_start(FAR struct pwm_lowerhalf_s *dev,
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
ret = nrf52_pwm_duty(dev,
|
ret = nrf52_pwm_duty(dev,
|
||||||
(priv->channels[0].channel - 1),
|
(info->channels[0].channel - 1),
|
||||||
info->duty);
|
info->duty);
|
||||||
#endif /* CONFIG_PWM_MULTICHAN */
|
#endif /* CONFIG_PWM_MULTICHAN */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user