diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-08-25 17:06:38 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-08-25 17:06:38 -0400 |
commit | 9b46f4021e6c96ed4697924a90a8b2b6dd0b0acc (patch) | |
tree | 8af6a876c0b548920dc664b8a6be83a1f479460e /keyboard/preonic/keymap_midi.c | |
parent | e6dd47db453968271dcd5e89c62c5258796511bc (diff) |
midi on planck
Diffstat (limited to 'keyboard/preonic/keymap_midi.c')
-rw-r--r-- | keyboard/preonic/keymap_midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard/preonic/keymap_midi.c b/keyboard/preonic/keymap_midi.c index ec380fd9ca..c7937bb9b5 100644 --- a/keyboard/preonic/keymap_midi.c +++ b/keyboard/preonic/keymap_midi.c @@ -31,7 +31,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) } } - if (record->event.key.col == 11 && record->event.key.row == 4) { + if (record->event.key.col == 11 && record->event.key.row == 4 && record->event.pressed) { starting_note++; midi_send_cc(&midi_device, 0, 0x7B, 0); midi_send_cc(&midi_device, 1, 0x7B, 0); @@ -39,7 +39,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) midi_send_cc(&midi_device, 3, 0x7B, 0); midi_send_cc(&midi_device, 4, 0x7B, 0); } - if (record->event.key.col == 8 && record->event.key.row == 4) { + if (record->event.key.col == 8 && record->event.key.row == 4 && record->event.pressed) { starting_note--; midi_send_cc(&midi_device, 0, 0x7B, 0); midi_send_cc(&midi_device, 1, 0x7B, 0); |