diff options
author | IBNobody <ibnobody@gmail.com> | 2016-04-17 00:24:58 -0500 |
---|---|---|
committer | IBNobody <ibnobody@gmail.com> | 2016-04-17 00:24:58 -0500 |
commit | 943b5b770955be937a89016680052be56d874c4a (patch) | |
tree | 20d2a1d81d7b72ec7cda06887ceb779443b6cf07 /quantum/audio.c | |
parent | 45f10b4c4b308226fa1568277654a13853a03ab4 (diff) | |
download | firmware-943b5b770955be937a89016680052be56d874c4a.tar.gz firmware-943b5b770955be937a89016680052be56d874c4a.tar.bz2 firmware-943b5b770955be937a89016680052be56d874c4a.zip |
Adding folding to #if, etc
Diffstat (limited to 'quantum/audio.c')
-rw-r--r-- | quantum/audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/audio.c b/quantum/audio.c index 90f3c5a13..119bd9229 100644 --- a/quantum/audio.c +++ b/quantum/audio.c @@ -288,7 +288,8 @@ ISR(TIMER3_COMPA_vect) { #else if (note_frequency > 0) { ICR3 = (int)(((double)F_CPU) / (note_frequency * CPU_PRESCALER)); // Set max to the period - OCR3A = (int)(((double)F_CPU) / (note_frequency * CPU_PRESCALER)) >> 1; // Set compare to half the period + //OCR3A = (int)(((double)F_CPU) / (note_frequency * CPU_PRESCALER)) >> 1; // Set compare to half the period + OCR3A = (int)(((double)F_CPU) / (note_frequency * CPU_PRESCALER)) >> 2; // Set compare to half the period } else { ICR3 = 0; OCR3A = 0; |