summaryrefslogtreecommitdiff
path: root/keyboards/lets_split
diff options
context:
space:
mode:
authorDustin <mannkind@users.noreply.github.com>2016-09-25 19:04:20 -0700
committerGitHub <noreply@github.com>2016-09-25 19:04:20 -0700
commitc40ad11615b6cb1d08ec2d3b284d59df00c57c1f (patch)
tree7604b39a67ecdb6be4c85a04db77ee383faee997 /keyboards/lets_split
parentf24b3f4589720b796a0184b59e7b7b6d639ef336 (diff)
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.
Diffstat (limited to 'keyboards/lets_split')
-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 574c116a75..c505d3a6e3 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
}