Skip to content

Commit 1f433a9

Browse files
committed
fix accidence delete pwm trigger for tone #69
1 parent 724d73b commit 1f433a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/nRF5/Tone.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ void tone(uint8_t pin, unsigned int frequency, unsigned long duration)
118118
NVIC_SetPriority(IntNo, 6); //low priority
119119
NVIC_ClearPendingIRQ(IntNo);
120120
NVIC_EnableIRQ(IntNo);
121+
122+
nrf_pwm_task_trigger(PWMInstance, NRF_PWM_TASK_SEQSTART0);
121123
}
122124

123125

0 commit comments

Comments
 (0)