You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2021/01/17 05:04:53 UTC

[incubator-nuttx] 01/07: nrf52: fix build for PWM without multichan enabled

This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit c526f01ba71bea1852b62987b5db4e52ab2dd350
Author: Matias N <ma...@protobits.dev>
AuthorDate: Sat Jan 16 19:24:32 2021 -0300

    nrf52: fix build for PWM without multichan enabled
---
 arch/arm/src/nrf52/nrf52_pwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/nrf52/nrf52_pwm.c b/arch/arm/src/nrf52/nrf52_pwm.c
index 3503eca..982fcba 100644
--- a/arch/arm/src/nrf52/nrf52_pwm.c
+++ b/arch/arm/src/nrf52/nrf52_pwm.c
@@ -586,7 +586,7 @@ static int nrf52_pwm_start(FAR struct pwm_lowerhalf_s *dev,
 
 #else
       ret = nrf52_pwm_duty(dev,
-                           (priv->channels[0].channel - 1),
+                           (info->channels[0].channel - 1),
                            info->duty);
 #endif /* CONFIG_PWM_MULTICHAN */