]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix lets_split.c so that audio can be disabled
authorDustin <mannkind@users.noreply.github.com>
Mon, 26 Sep 2016 02:04:20 +0000 (19:04 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2016 02:04:20 +0000 (19:04 -0700)
Matching the use of `#ifdef AUDIO_ENABLE` used in `matrix_init_kb()` in order to compile firmware for the Let's Split keyboard without audio enabled.

keyboards/lets_split/lets_split.c

index 574c116a75463358cb61b7df14e55729b61223fa..c505d3a6e317630df35f0d166a77bf4de841f11e 100644 (file)
@@ -24,7 +24,9 @@ void matrix_init_kb(void) {
 };
 
 void shutdown_user(void) {
-    PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
-    _delay_ms(150);
-    stop_all_notes();
+    #ifdef AUDIO_ENABLE
+        PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
+       _delay_ms(150);
+       stop_all_notes();
+    #endif
 }