diff options
author | Alex Johnstone <alexjj@gmail.com> | 2016-04-05 07:44:37 -0700 |
---|---|---|
committer | Alex Johnstone <alexjj@gmail.com> | 2016-04-05 07:44:37 -0700 |
commit | 1facc53a26294df7fb2a42f8f3d025176b8c384a (patch) | |
tree | 98eebfa4beb49524c1345c2dd9e93d1fb8aa445a /quantum/audio.c | |
parent | 48899673af8b82638d601455f405f03db165bd57 (diff) | |
parent | 931b0a79fc071498c229b0051be0ebadd934a549 (diff) | |
download | qmk_firmware-1facc53a26294df7fb2a42f8f3d025176b8c384a.tar.gz qmk_firmware-1facc53a26294df7fb2a42f8f3d025176b8c384a.zip |
Merge pull request #5 from jackhumbert/master
Sync with upstream
Diffstat (limited to 'quantum/audio.c')
-rw-r--r-- | quantum/audio.c | 3 |
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 |