summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorAdam Gausmann <adam@nonemu.ninja>2016-09-29 21:46:10 +0200
committerAdam Gausmann <adam@nonemu.ninja>2016-09-29 21:46:10 +0200
commit8d99140d1b80bf497b2198138d3f481e93b0fbab (patch)
tree752d08bd75a9233848d391b390c0cc9032bc43dc /quantum/process_keycode
parent2a160bbbe3ad496dd688f4399ab2b8d127c0b8a7 (diff)
downloadqmk_firmware-8d99140d1b80bf497b2198138d3f481e93b0fbab.tar.gz
qmk_firmware-8d99140d1b80bf497b2198138d3f481e93b0fbab.tar.xz
Missing ifdef statement
Diffstat (limited to 'quantum/process_keycode')
-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 8784e64f3..577dad43a 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
+}