arch/arm/src/nrf52/nrf52_pwm.c: add missing index for pwm2 and pwm3
This commit is contained in:
parent
13ff8e0276
commit
49d0d41234
|
@ -693,7 +693,7 @@ FAR struct pwm_lowerhalf_s *nrf52_pwminitialize(int pwm)
|
||||||
#ifdef CONFIG_NRF52_PWM2
|
#ifdef CONFIG_NRF52_PWM2
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
lower = &g_nrf52_pwm;
|
lower = &g_nrf52_pwm2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -701,7 +701,7 @@ FAR struct pwm_lowerhalf_s *nrf52_pwminitialize(int pwm)
|
||||||
#ifdef CONFIG_NRF52_PWM3
|
#ifdef CONFIG_NRF52_PWM3
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
lower = &g_nrf52_pwm;
|
lower = &g_nrf52_pwm3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue