diff options
| -rw-r--r-- | quantum/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/audio.c b/quantum/audio.c index 9b9589f13..58b9ab76b 100644 --- a/quantum/audio.c +++ b/quantum/audio.c | |||
| @@ -257,7 +257,7 @@ ISR(TIMER3_COMPA_vect) { | |||
| 257 | place = 0.0; | 257 | place = 0.0; |
| 258 | } | 258 | } |
| 259 | ICR3 = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)); // Set max to the period | 259 | ICR3 = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)); // Set max to the period |
| 260 | OCR3A = (int)((((double)F_CPU) / (note_frequency * CPU_PRESCALER)) * note_timbre); // Set compare to half the period | 260 | OCR3A = (int)((((double)F_CPU) /(frequencies[voice_place] * CPU_PRESCALER)) * note_timbre); // Set compare to half the period |
| 261 | //OCR3A = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)) >> 1 * duty_place; // Set compare to half the period | 261 | //OCR3A = (int)(((double)F_CPU) / (frequencies[voice_place] * CPU_PRESCALER)) >> 1 * duty_place; // Set compare to half the period |
| 262 | place++; | 262 | place++; |
| 263 | // if (duty_counter > (frequencies[voice_place] / 500)) { | 263 | // if (duty_counter > (frequencies[voice_place] / 500)) { |
