fix accidence delete pwm trigger for tone #69

This commit is contained in:
hathach committed 2019-06-19 21:54:19 +07:00
1 parent 724d73b65e
commit 1f433a9a1f
1 file changed
+2
+2
View File
@@ -118,6 +118,8 @@ void tone(uint8_t pin, unsigned int frequency, unsigned long duration)
NVIC_SetPriority(IntNo, 6); //low priority
NVIC_ClearPendingIRQ(IntNo);
NVIC_EnableIRQ(IntNo);
nrf_pwm_task_trigger(PWMInstance, NRF_PWM_TASK_SEQSTART0);
}