aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_midi.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_midi.c')
-rw-r--r--quantum/process_keycode/process_midi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_midi.c b/quantum/process_keycode/process_midi.c
index 5530ea97c..161f04a24 100644
--- a/quantum/process_keycode/process_midi.c
+++ b/quantum/process_keycode/process_midi.c
@@ -1,6 +1,7 @@
1#define MIDI_TONE_KEYCODE_OCTAVES 2
2
3#include "process_midi.h" 1#include "process_midi.h"
2
3#if defined(MIDI_ENABLE) && defined(MIDI_ADVANCED)
4
4#include "timer.h" 5#include "timer.h"
5 6
6static uint8_t tone_status[MIDI_TONE_COUNT]; 7static uint8_t tone_status[MIDI_TONE_COUNT];
@@ -161,7 +162,7 @@ bool process_midi(uint16_t keycode, keyrecord_t *record)
161 dprintf("midi channel %d\n", midi_config.channel); 162 dprintf("midi channel %d\n", midi_config.channel);
162 } 163 }
163 return false; 164 return false;
164 case MI_OFF: 165 case MI_ALLOFF:
165 if (record->event.pressed) { 166 if (record->event.pressed) {
166 midi_send_cc(&midi_device, midi_config.channel, 0x7B, 0); 167 midi_send_cc(&midi_device, midi_config.channel, 0x7B, 0);
167 dprintf("midi off\n"); 168 dprintf("midi off\n");
@@ -209,3 +210,5 @@ bool process_midi(uint16_t keycode, keyrecord_t *record)
209 210
210 return true; 211 return true;
211} 212}
213
214#endif // MIDI_ADVANCED