summaryrefslogtreecommitdiff
path: root/quantum/audio.c
diff options
context:
space:
mode:
authorChristopher Browne <cbbrowne@ca.afilias.info>2016-04-13 12:02:51 -0400
committerChristopher Browne <cbbrowne@ca.afilias.info>2016-04-13 12:02:51 -0400
commit6ec6b613536b7138ee0c87002b10da8fe0c0117d (patch)
tree9bd7d842cb99a84ab6ae96b3437c39e41f9608d9 /quantum/audio.c
parent5bbcc484a8e14ffb13354df4efdd460ebe7200e1 (diff)
parenta0194d7e5ff2f3d242a5c6508abf81b4ddf67a3e (diff)
downloadqmk_firmware-6ec6b613536b7138ee0c87002b10da8fe0c0117d.tar.gz
qmk_firmware-6ec6b613536b7138ee0c87002b10da8fe0c0117d.zip
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/audio.c')
-rw-r--r--quantum/audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/audio.c b/quantum/audio.c
index 3a3a1a4910..f29d941d7c 100644
--- a/quantum/audio.c
+++ b/quantum/audio.c
@@ -247,6 +247,9 @@ ISR(TIMER3_COMPA_vect) {
if (note_frequency > 0) {
ICR3 = (int)(((double)F_CPU) / note_frequency); // Set max to the period
OCR3A = (int)(((double)F_CPU) / note_frequency) >> 1; // Set compare to half the period
+ } else {
+ ICR3 = 0;
+ OCR3A = 0;
}
#endif