]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/audio/audio.c
remove unneccesary headers
[qmk_firmware.git] / quantum / audio / audio.c
index baa364eec23fda36c47e8067b15169122b548f30..8e8570d26c580a7634f3631461650fb320b567bf 100644 (file)
@@ -555,7 +555,10 @@ ISR(TIMER1_COMPA_vect)
         note_position++;
         bool end_of_note = false;
         if (TIMER_1_PERIOD > 0) {
-            end_of_note = (note_position >= (note_length / TIMER_1_PERIOD * 0xFFFF - 1));
+            if (!note_resting) 
+                end_of_note = (note_position >= (note_length / TIMER_1_PERIOD * 0xFFFF - 1));
+            else
+                end_of_note = (note_position >= (note_length));
         } else {
             end_of_note = (note_position >= (note_length));
         }