aboutsummaryrefslogtreecommitdiff
path: root/quantum/audio.c
diff options
context:
space:
mode:
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 3a3a1a491..f29d941d7 100644
--- a/quantum/audio.c
+++ b/quantum/audio.c
@@ -247,6 +247,9 @@ ISR(TIMER3_COMPA_vect) {
247 if (note_frequency > 0) { 247 if (note_frequency > 0) {
248 ICR3 = (int)(((double)F_CPU) / note_frequency); // Set max to the period 248 ICR3 = (int)(((double)F_CPU) / note_frequency); // Set max to the period
249 OCR3A = (int)(((double)F_CPU) / note_frequency) >> 1; // Set compare to half the period 249 OCR3A = (int)(((double)F_CPU) / note_frequency) >> 1; // Set compare to half the period
250 } else {
251 ICR3 = 0;
252 OCR3A = 0;
250 } 253 }
251 #endif 254 #endif
252 255