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 | firmware-c40ad11615b6cb1d08ec2d3b284d59df00c57c1f.tar.gz firmware-c40ad11615b6cb1d08ec2d3b284d59df00c57c1f.tar.bz2 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) { }; 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 } |