diff options
author | Dustin <mannkind@users.noreply.github.com> | 2016-09-25 19:04:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-25 19:04:20 -0700 |
commit | c40ad11615b6cb1d08ec2d3b284d59df00c57c1f (patch) | |
tree | 7604b39a67ecdb6be4c85a04db77ee383faee997 | |
parent | f24b3f4589720b796a0184b59e7b7b6d639ef336 (diff) | |
download | qmk_firmware-c40ad11615b6cb1d08ec2d3b284d59df00c57c1f.tar.gz qmk_firmware-c40ad11615b6cb1d08ec2d3b284d59df00c57c1f.zip |
Fix lets_split.c so that audio can be disabled
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.
-rw-r--r-- | keyboards/lets_split/lets_split.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/keyboards/lets_split/lets_split.c b/keyboards/lets_split/lets_split.c index 574c116a7..c505d3a6e 100644 --- a/keyboards/lets_split/lets_split.c +++ b/keyboards/lets_split/lets_split.c | |||
@@ -24,7 +24,9 @@ void matrix_init_kb(void) { | |||
24 | }; | 24 | }; |
25 | 25 | ||
26 | void shutdown_user(void) { | 26 | void shutdown_user(void) { |
27 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | 27 | #ifdef AUDIO_ENABLE |
28 | _delay_ms(150); | 28 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); |
29 | stop_all_notes(); | 29 | _delay_ms(150); |
30 | stop_all_notes(); | ||
31 | #endif | ||
30 | } | 32 | } |