summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_midi.c
diff options
context:
space:
mode:
authorIBNobody <protospherex@gmail.com>2016-10-29 11:13:15 -0500
committerIBNobody <protospherex@gmail.com>2016-10-29 11:13:15 -0500
commite40c33f754a86c4dd7bd3c7b5c7efe822f2893bc (patch)
treebf372a8afead88128f68d373435025a16fbf53c2 /quantum/process_keycode/process_midi.c
parent973f526bb4928bf3aec6067aa444b31ace997c8a (diff)
parent32f88c07173b795c6981c779057dceba00aeb1cb (diff)
Merge branch 'master' of https://github.com/IBNobody/qmk_firmware
Diffstat (limited to 'quantum/process_keycode/process_midi.c')
-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
+}