arch/arm/src/nrf52/nrf52_pwm.c: add missing index for pwm2 and pwm3

This commit is contained in:
raiden00pl 2020-09-13 13:27:00 +02:00 committed by Alan Carvalho de Assis
parent 13ff8e0276
commit 49d0d41234
1 changed files with 2 additions and 2 deletions

View File

@ -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