summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-12-10 11:32:36 -0500
committerJack Humbert <jack.humb@gmail.com>2017-12-10 11:32:36 -0500
commit58898f77e311588e15f78d3f6ed829b6010055d9 (patch)
tree107543b031ec8efa39a82d28a7a21e33e053c97a /quantum
parentc2f4c4e29ec74edb0a4a1647fc0d6ab084a2dc0d (diff)
fixes midi compile error
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_music.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_music.c b/quantum/process_keycode/process_music.c
index f69d13ff58..c7f41cc388 100644
--- a/quantum/process_keycode/process_music.c
+++ b/quantum/process_keycode/process_music.c
@@ -279,7 +279,9 @@ void midi_on(void) {
}
void midi_off(void) {
- process_midi_all_notes_off();
+ #if defined(MIDI_ENABLE) && defined(MIDI_BASIC)
+ process_midi_all_notes_off();
+ #endif
midi_activated = 0;
#ifdef AUDIO_ENABLE
PLAY_SONG(midi_off_song);