From 49d0d41234f86428e4923b7d134b2517a9e0d426 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sun, 13 Sep 2020 13:27:00 +0200 Subject: [PATCH] arch/arm/src/nrf52/nrf52_pwm.c: add missing index for pwm2 and pwm3 --- arch/arm/src/nrf52/nrf52_pwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/nrf52/nrf52_pwm.c b/arch/arm/src/nrf52/nrf52_pwm.c index 94a2dc40cf..f489613243 100644 --- a/arch/arm/src/nrf52/nrf52_pwm.c +++ b/arch/arm/src/nrf52/nrf52_pwm.c @@ -693,7 +693,7 @@ FAR struct pwm_lowerhalf_s *nrf52_pwminitialize(int pwm) #ifdef CONFIG_NRF52_PWM2 case 2: { - lower = &g_nrf52_pwm; + lower = &g_nrf52_pwm2; break; } #endif @@ -701,7 +701,7 @@ FAR struct pwm_lowerhalf_s *nrf52_pwminitialize(int pwm) #ifdef CONFIG_NRF52_PWM3 case 3: { - lower = &g_nrf52_pwm; + lower = &g_nrf52_pwm3; break; } #endif