summaryrefslogtreecommitdiff
path: root/quantum/audio.c
diff options
context:
space:
mode:
authorIBNobody <ibnobody@gmail.com>2016-04-13 19:14:23 -0500
committerIBNobody <ibnobody@gmail.com>2016-04-13 19:14:23 -0500
commit01f5b35396e5558a39e6f35ef9128b96c289c05c (patch)
treef897786dddcd310f227ac157e79c7dd717e9b582 /quantum/audio.c
parent390fd3107a84277151ceb63255c859307221a290 (diff)
parenta0194d7e5ff2f3d242a5c6508abf81b4ddf67a3e (diff)
Merge remote-tracking branch 'refs/remotes/jackhumbert/master' into pc_planck
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