From 1947ca0622fdac65e3eabfd7472e8cd8268b485a Mon Sep 17 00:00:00 2001 From: Trey German Date: Wed, 15 Jan 2014 15:41:26 -0600 Subject: [PATCH] C2000 - Fixed error in Tone API that prevented note from changing --- hardware/c2000/cores/c2000/Tone.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/c2000/cores/c2000/Tone.cpp b/hardware/c2000/cores/c2000/Tone.cpp index 240f4b2d48d..8ceeb2a4841 100644 --- a/hardware/c2000/cores/c2000/Tone.cpp +++ b/hardware/c2000/cores/c2000/Tone.cpp @@ -205,9 +205,11 @@ static void inline stopTimer(uint8_t n) { case 0: CpuTimer1Regs.TCR.bit.TSS = 1; + CpuTimer1Regs.TCR.bit.TIE = 0; break; case 1: CpuTimer2Regs.TCR.bit.TSS = 1; + CpuTimer2Regs.TCR.bit.TIE = 0; break; } *tone_out[n] &= ~tone_bit[n];