]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Merge branch 'personal_atomic_planck' of github.com:IBNobody/qmk_firmware
authorJack Humbert <jack.humb@gmail.com>
Mon, 18 Apr 2016 01:15:50 +0000 (21:15 -0400)
committerJack Humbert <jack.humb@gmail.com>
Mon, 18 Apr 2016 01:15:50 +0000 (21:15 -0400)
1  2 
quantum/audio.c

diff --cc quantum/audio.c
index e0413051a092e17e901c24aea4da553b5f0bad5b,60236697392c24c2ae583885d91c4e55f4ee7cb5..5805da46c1e4acaca56318e92cfc97678dd71a81
@@@ -351,9 -351,8 +351,9 @@@ void play_notes(float (*np)[][2], uint8
  
  if (audio_config.enable) {
  
-     if (note)
+     if (note || notes)
          stop_all_notes();
 +    notes = true;
  
      notes_pointer = np;
      notes_count = n_count;
@@@ -406,9 -406,8 +406,9 @@@ void play_note(double freq, int vol) 
  
  if (audio_config.enable && voices < 8) {
  
-     if (notes)
+     if (note || notes)
          stop_all_notes();
 +    note = true;
      #ifdef PWM_AUDIO
          freq = freq / SAMPLE_RATE;
      #endif