From 1f433a9a1f53014c16d69e56309c8c8f2660dc77 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 19 Jun 2019 21:50:02 +0700 Subject: [PATCH] fix accidence delete pwm trigger for tone #69 --- cores/nRF5/Tone.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/nRF5/Tone.cpp b/cores/nRF5/Tone.cpp index b5cedd1f..e244d391 100644 --- a/cores/nRF5/Tone.cpp +++ b/cores/nRF5/Tone.cpp @@ -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); }