Skip to content

Commit

Permalink
C2000 - Fixed error in Tone API that prevented note from changing
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey German committed Jan 15, 2014
1 parent 7930357 commit 1947ca0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hardware/c2000/cores/c2000/Tone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1947ca0

Please sign in to comment.