aboutsummaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2016-04-05 09:21:44 -0400
committerGravatar Jack Humbert <jack.humb@gmail.com>2016-04-05 09:21:44 -0400
commit976d0a327b563ff83d0f7bcee41b2360877bface (patch)
treef9e748054f0a4d10ce87e76936d3224e319b3beb /quantum
parenta90d68739a29debe93bdf9e26f2c126e8eca46e9 (diff)
downloadqmk_firmware-976d0a327b563ff83d0f7bcee41b2360877bface.tar.gz
add silent notes
Diffstat (limited to 'quantum')
-rw-r--r--quantum/audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/audio.c b/quantum/audio.c
index 3a3a1a491..f29d941d7 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