summaryrefslogtreecommitdiff
path: root/quantum/audio.c
diff options
context:
space:
mode:
authorStephan Bösebeck <sb@caluga.de>2016-04-06 22:52:49 +0200
committerStephan Bösebeck <sb@caluga.de>2016-04-06 22:52:49 +0200
commit0befb25739ebcec64a3300d60d7c108f6916dee7 (patch)
tree222fd634cf50c584ceb7925bb8e61a9f266830de /quantum/audio.c
parent75c24499f3fcb4ad2156875fb529f87a5d99fe9f (diff)
parent153a6fb0d3e9b54c4d6241c44ffdb9ce8a65de7f (diff)
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