summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-09-29 23:32:23 -0400
committerGitHub <noreply@github.com>2016-09-29 23:32:23 -0400
commit7c76d364549f7c27d09134f9a8308e05928ad550 (patch)
treeae5c3bdd6c508699a75a1d3cd11f844c8cdd28e0 /quantum
parentd3fdc3a00f0c1ab718f83c9d2963adfb46b05562 (diff)
parent8d99140d1b80bf497b2198138d3f481e93b0fbab (diff)
Merge pull request #794 from AGausmann/midi-patch
Missing ifdef statement
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_midi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_midi.c b/quantum/process_keycode/process_midi.c
index 8784e64f36..577dad43ac 100644
--- a/quantum/process_keycode/process_midi.c
+++ b/quantum/process_keycode/process_midi.c
@@ -7,7 +7,9 @@ int midi_offset = 7;
bool process_midi(uint16_t keycode, keyrecord_t *record) {
if (keycode == MI_ON && record->event.pressed) {
midi_activated = true;
+#ifdef AUDIO_ENABLE
music_scale_user();
+#endif
return false;
}
@@ -63,4 +65,4 @@ bool process_midi(uint16_t keycode, keyrecord_t *record) {
return false;
}
return true;
-} \ No newline at end of file
+}