aboutsummaryrefslogtreecommitdiff
path: root/speaker.c
diff options
context:
space:
mode:
Diffstat (limited to 'speaker.c')
-rw-r--r--speaker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/speaker.c b/speaker.c
index d903c57..2eace8d 100644
--- a/speaker.c
+++ b/speaker.c
@@ -37,7 +37,7 @@ void speakerStart () {
/* enable overflow interrupt */
TIMSK2 = (1 << TOIE2);
/* io clock with 1024 prescaler */
- TCCR2B = (TCCR2B & ~((1 << CS21)) | (1 << CS22) | (1 << CS20));
+ TCCR2B = ((TCCR2B & ~(1 << CS21)) | (1 << CS22) | (1 << CS20));
}
void speakerStop () {