From 976d0a327b563ff83d0f7bcee41b2360877bface Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Tue, 5 Apr 2016 09:21:44 -0400 Subject: [PATCH] add silent notes --- quantum/audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quantum/audio.c b/quantum/audio.c index 3a3a1a49..f29d941d 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