summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-09-26 04:43:38 +0200
committerGitHub <noreply@github.com>2016-09-26 04:43:38 +0200
commit812219e8a0bf5f317c000d3c5247cdb93a6d7fff (patch)
tree7604b39a67ecdb6be4c85a04db77ee383faee997
parentf24b3f4589720b796a0184b59e7b7b6d639ef336 (diff)
parentc40ad11615b6cb1d08ec2d3b284d59df00c57c1f (diff)
downloadqmk_firmware-812219e8a0bf5f317c000d3c5247cdb93a6d7fff.tar.gz
qmk_firmware-812219e8a0bf5f317c000d3c5247cdb93a6d7fff.tar.xz
Merge pull request #786 from mannkind/patch-1
Fix lets_split.c so that audio can be disabled
-rw-r--r--keyboards/lets_split/lets_split.c8
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
}